Python Study Notes
1. Introduction
• Python is a high-level, interpreted, object-oriented language.
• Used in Web Development, AI/ML, Automation, Data Engineering, Testing, and APIs.
2. Variables & Data Types
• Variables: x = 10
• Data Types: int, float, str, bool, list, tuple, set, dict
3. Operators
• Arithmetic: + - * / // % **
• Comparison: == != > < >= <=
• Logical: and, or, not
4. Control Flow
• if / elif / else
• for loops
• while loops
• break, continue, pass
5. Functions
• Define using def
• Arguments, return values
• Lambda functions
6. Collections
• List → mutable
• Tuple → immutable
• Set → unique values
• Dictionary → key-value
7. OOP
• Class & Object
• Inheritance
• Encapsulation
• Polymorphism
8. File Handling
• open(), read(), write(), with statement
9. Exception Handling
• try / except / finally
10. Modules & Packages
• import, from, pip
11. Python for Data
• NumPy
• Pandas
• Matplotlib
12. Automation & Testing
• Selenium
• Playwright
• API automation
13. Interview Topics
• deep copy vs shallow copy
• list vs tuple
• loc vs iloc
• generators and decorators
Tip: Practice daily using small projects such as calculator, file parser, API client, and automation
scripts.