Python
Cheat Sheet
, Variables .................................................................................................. 5
Comments ................................................................................................ 5
Receiving Input ....................................................................................... 5
Strings...................................................................................................... 6
Arithmetic Operations ............................................................................. 7
If Statements............................................................................................ 8
Comparison operators ............................................................................ 8
While loops .............................................................................................. 8
For loops .................................................................................................. 9
Lists .......................................................................................................... 9
Tuples ....................................................................................................... 9
Dictionaries ........................................................................................... 10
Functions ............................................................................................... 10
Exceptions ............................................................................................... 11
Classes..................................................................................................... 11
Inheritance ............................................................................................ 12
Modules.................................................................................................. 12
Packages ................................................................................................ 13
Python Standard Library ..................................................................... 13
Pypi ........................................................................................................ 14
Want to Become a Python Expert? ....................................................... 14
Cheat Sheet
, Variables .................................................................................................. 5
Comments ................................................................................................ 5
Receiving Input ....................................................................................... 5
Strings...................................................................................................... 6
Arithmetic Operations ............................................................................. 7
If Statements............................................................................................ 8
Comparison operators ............................................................................ 8
While loops .............................................................................................. 8
For loops .................................................................................................. 9
Lists .......................................................................................................... 9
Tuples ....................................................................................................... 9
Dictionaries ........................................................................................... 10
Functions ............................................................................................... 10
Exceptions ............................................................................................... 11
Classes..................................................................................................... 11
Inheritance ............................................................................................ 12
Modules.................................................................................................. 12
Packages ................................................................................................ 13
Python Standard Library ..................................................................... 13
Pypi ........................................................................................................ 14
Want to Become a Python Expert? ....................................................... 14