Python Notes
1. Introduction to Python
Python is a high-level, interpreted, object-oriented programming language known for its simplicity
and readability.
2. Variables and Data Types
int, float, str, bool, list, tuple, set, dict
Example: x = 10, name = 'Bibek'
3. Operators
Arithmetic (+,-,*,/,%), Comparison (==, !=, >, <), Logical (and, or, not)
4. Conditional Statements
if, elif, else statements are used for decision making.
5. Loops
for loop and while loop are used for repetition.
6. Functions
Functions are reusable blocks of code defined using def.
7. Lists, Tuples, Sets, Dictionaries
Python provides powerful collection data structures.
8. Object-Oriented Programming
Concepts: Class, Object, Inheritance, Polymorphism, Encapsulation.
9. File Handling
open(), read(), write(), append(), close()
10. NumPy and Pandas
NumPy is used for numerical computing. Pandas is used for data analysis and manipulation.
11. Exception Handling
try, except, finally blocks handle runtime errors.
12. Popular Applications
Web Development, Data Science, AI/ML, Automation, Cybersecurity, Scripting.