PYTHON Language Programming
PYTHON language programming is:
- flexible,
- portable,
- easy,
- free,
- accessible,
- intuitive,
- versatile,
- universal,
- convenient,
- ordinary,
- common.
PYTHON programming language has taken over the best of all the programming languages before it. It is simple, efficient, dense and attractive.
The input() statement is used to enter the data. The print() instruction is used to present the results.
Variable names are constructed the same as all other programming languages:
- the first character is required a letter,
- the other characters are letters, numbers or underscores,
- uppercase letters differ from lowercase letters,
- any words other than the reserved words of the PYTHON language.
- the length of the name does not exceed 31 characters.
The string is preceded and followed by quotation marks.
The string is preceded and followed by an apostrophe.
Correct variable names:
a
i
j
temp
Triangle
surface_cercle
volume_cube
Name_Person
Age_Student
Year2000
Wrong variable names:
7i
=i4
&cost
name$student
age*person-teacher
Variable names elev, Elev, ELEV, ELev, eleV, EL_EV, ELEV_ they are different.
- flexible,
- portable,
- easy,
- free,
- accessible,
- intuitive,
- versatile,
- universal,
- convenient,
- ordinary,
- common.
PYTHON programming language has taken over the best of all the programming languages before it. It is simple, efficient, dense and attractive.
The input() statement is used to enter the data. The print() instruction is used to present the results.
Variable names are constructed the same as all other programming languages:
- the first character is required a letter,
- the other characters are letters, numbers or underscores,
- uppercase letters differ from lowercase letters,
- any words other than the reserved words of the PYTHON language.
- the length of the name does not exceed 31 characters.
The string is preceded and followed by quotation marks.
The string is preceded and followed by an apostrophe.
Correct variable names:
a
i
j
temp
Triangle
surface_cercle
volume_cube
Name_Person
Age_Student
Year2000
Wrong variable names:
7i
=i4
&cost
name$student
age*person-teacher
Variable names elev, Elev, ELEV, ELev, eleV, EL_EV, ELEV_ they are different.
PYTHON reserved keywords:
False, None, True, and, as, assert, async, await, break, class, continue, def, del, elif, else,
except, finally, for, from, global, if, import, in, is, lambda,
nonlocal, not, or, pass, raise, return, try, while, with, yield.
Variable names: And
ReturN WHile YIEld From truE eXCept, are correct. | |
(March 21, 2022)
Comments
Post a Comment