January 2019
Beginner
318 pages
8h 23m
English
The Python interactive console starts from >>> prefix. This console will accept the Python commands, which you'll write after >>> prefix. Refer to the following screenshot:

Now, we will see how to assign values to the variable, as in the following example:
>>> name = John
Here, we've assigned a character value of John to the name variable. We pressed Enter and received a new line with >>> prefix:
>>> name = John
Now, we will see an example of assigning values to variables and then we will perform a math operation to get the values:
>>> num1 = 5000>>> num2 = 3500>>> num3 = num1 + num2>>> ...
Read now
Unlock full access