PythonClassRoom / CookBook

Python CookBook
0 stars 0 forks source link

Variables and assigment #5

Open ericksc opened 6 years ago

AdrianPrendas commented 6 years ago

Python is an dynamic language, its means that the variables can change their data type in exec time

Commit aa33704e9632c9d7162cc50c38787f75f0f5877d

By the complexity of the grammar exist a lot of ways to make assigments see Python grammar: https://docs.python.org/3/reference/grammar.html see "9.4. Expression input": https://docs.python.org/3/reference/toplevel_components.html

The grammar specific the structure and the valid rules of the language "things allowed" to then make a parse tree and check the code written

ast and parse tree