Breaking

Tuesday, 3 August 2021

Chapter 1 || what is Python || How to print a dictionary in Python

 

The language you're knowledge here

Python may be a popular, 30-year-old general-purpose programing language created by Guido van Rossum. Compared with alternative languages, it's reasonably easy to find out, and it's relatively easy to read. Python is usually wont to teach learners the basics of programming.





 Chapter 1

Definition of python and print

 

In Python, the order print counsels the program to show words or numbers on the screen. Here's a line of code that advises Python to show the words.

 "Hello, World!"

 Print ("Hello, World!")

 print may be a keyword that is, a word that has special meaning for Python. It means, "Show what’s inside the digressions." Note that print isn't exploited. If you capitalize it, the program won’t run.

The departures are a special requirement of Python, one that you're going to soon get won't to you will be typing parentheses over and once again, altogether sorts of Python statements.

In coding, the quoted text within the line above "Hello, World!" is known as a content string or simply a string. The name makes sense: it is a string of characters.

When Python displays a thread on the screen, the passage marks don't display. They’re only in your code to inform Python that it’s handling a string.

Note that the opening parenthesis is jammed up against the keyword print, and therefore the opening quote is caressing the opening digression. you'll space it out, writing...

 print ("Hello, World!")

 But I want you to learn the style resolutions of Python, so I'll ask you to omit spaces when it’s the conservative thing to do.

No comments:

Post a Comment

Adbox