1. Basic Syntax
comments
1 |
|
1 | myvar = 3 |
2. Data types
data types
1 | sample = [1, ["another", "list"], {"a","b"}] |
array range
1 | mylist = ["list item 1", 2, 34] |
3. String
1 |
|
4. Flow control statements
1 | print(range(10)) |
5. Functions
1 |
|
6. Classes
1 |
|
7. Exceptions
1 | def some_function(): |
8. Important
1 |
|
9. File I/O
1 | import pickle |