The program is a set of algorithms that provide the necessary actions. Conventionally, an ordinary person can be programmed in the same way by writing precise commands so that, for example, he makes tea. If the latter version uses natural speech (Russian, Ukrainian, English, Korean, etc.), then a special programming language will be needed for the computer. Python is one of those. The programming environment will subsequently translate the commands into machine code, and the goal of the person for whom the algorithm was created will be fulfilled. Python has its own syntax, which will be discussed below.
Language history
1980- , 1991. Python . «» , .
, Pascal, ++. .
, «» , . .
«»
Python . . , , . , .
- . Python. ? , .
, . «» , . , . Python. .
:
- if-else. , elif.
- Class .
- – pass. , .
- while for.
- , def.
, Python . . , . . , , . and or.
: ( «») , - . , . , .
Python ( , , ) Linux . «» . . , , . , :
6+4.
10*(4-6).
6.1+1.8/9.
«». .
, «»
, ( ), , . , , - . , , , . , , .
, Python:
- Integer. , , . .
- , , float point. , . , «3.25», «3,25».
- Python string. .
, – , . Python, , .
«» . – . , «» «», , , . , .
, «» . , .
, , , , , . , .
«» , , , ++ , , Python.
?
, Python. . , 3. ( ), 2. - . 2.7.8, . 3. , . , , .