(Python Basics) - Cheatsheet
(Python Basics) - Cheatsheet
2. Data Structures
3. Control Flow
● If Statement: if condition:
By: Waleed Mousa
● If-Else Statement: if condition: else:
● If-Elif-Else Statement: if condition: elif condition: else:
● For Loop: for item in iterable:
● While Loop: while condition:
● Break: break
● Continue: continue
● Pass: pass
● List Comprehension: [expression for item in list]
● Dictionary Comprehension: {key: value for item in list}
5. Error Handling
6. File Handling
7. Object-Oriented Programming
8. Advanced Topics
13. Networking
15. Testing
24. Decorators