Good to know
βοΈ There are already many online resources that document pyhton pretty well, find here some of the best ones:
Setup
| Topic | Content |
|---|---|
| π Imports | Import modules, classes or files |
| π Virtual Environment | Create a virtual envi to isolate the project and its dependencies |
| π Executable Files | Create a file that can be executed just like an app |
| π Requirements | Install requirements |
Basics
| Topic | Content |
|---|---|
| π Variables | Simple, Multi, constant or duunder |
| π Comments | Single and multiline comments |
| π Datatypes | Short overview over all possible datatypes |
| π Class | Create your own objects |
| π Function | Function, methods all the same |
| π Try Except | Avoid crashes and increase logging |
| βοΈfinish Testing | |
| π Naming Conventions | Name conventions for Var, Class and more |
Lists
| Topic | Content |
|---|---|
| π List | [ Default list ] - Stores all kind of datatypes, duplicates and can be sorted |
| π Tuple | ( Immutable list ) - Preserve order and allow duplicates |
| π Set | ( Unique list ) - Unsorted & optimized for speed, new values can be added |
| π 2D Lists | List of Lists - Good for maps or games |
| π Dictionary | {{ Key: Value }} - Map keys to a value |
Manipulations
| Topic | Content |
|---|---|
| π Convert Datatypes | String to number and vice versa |
| π String & list manipulation | Slice, join, reverse & more |
| π Number manipulation | Simple calculation option |
| π Operators | AND, OR and more |
Control Flow
| Topic | Content |
|---|---|
| π For Loop | Iterate over strings or lists, limited iterating |
| π While Loop | Iterate as long as the condition is true |
| π Loop Control | Break, Continue, Pass |
| π If else | If else, elif, if in and more |
| π Match Case | Pythons version for Switch-Case |
Debug
| Topic | Content |
|---|---|
| βοΈfinish logging |
Data
| Topic | Content |
|---|---|
| π Reading & Writing Files | Export or import to/from other files |
| βοΈfinish β³ Add Pandas when used next time |
Frontend
| Topic | Content |
|---|---|
| π PyWebView | Let your python backend talk to a html & js frontend |