|
|||||||||||
Home Products Download Tutorials
Web Ring/Links Contact |
The interpreterThe Python command's interpreter launched by the command with the same name. The prompt >>> shows when the interpreter waits for a command. Another prompt … tells the user that the next command will belong to the current block. A block of command ends generally by an empty line. The tutorial's examples use the interpreter prompts to make the difference between commands and their output.CommentA comment in Python begin with a # (cardinal) and finish at the end of line.Example :
Variables OverviewThe variable's names are case sensitive. The variable Toto is not the same as TOTO. A variable exists only when assign. The assign gives the kind of variable and its value. Assigns an existing variable allows the change of its type.Example :
Integer VariableAn integer variable is created by the assignment of an integer or by the int() function.Example :
Floating VariableA floating variable is created when the formula assigns contains at least one floating number or by using the float() function.Example :
|
|
|||||||||
|