PYTHON HANDWRITTEN NOTES
Python is a high-level, interpreted, and object-oriented programming language.
Variables are used to store data. Example: x = 10
Data types include int, float, string, boolean, list, tuple, set, dictionary.
Input is taken using input() and output is shown using print().
Operators: Arithmetic (+, -, *, /), Logical (and, or, not), Comparison (==, !=).
Conditional statements: if, elif, else are used for decision making.
Loops: for loop and while loop are used for repetition.
Functions are defined using def keyword. They help in code reusability.
Lists are mutable, tuples are immutable.
Dictionary stores data in key-value pairs.
Exception handling is done using try and except.
OOP concepts include class, object, inheritance, polymorphism, encapsulation.
File handling is done using open(), read(), write(), and close().
Popular libraries: NumPy, Pandas, Matplotlib, Scikit-learn.