Python Notes for Beginners
Introduction to Python
Python is a high-level, interpreted and easy-to-learn programming language.
Variables and Data Types
int, float, str, bool, list, tuple, set and dictionary.
Operators
Arithmetic, Comparison, Logical and Assignment operators.
Conditional Statements
if, elif and else statements.
Loops
for loop, while loop, break and continue.
Functions
Defining and calling functions, arguments and return values.
Lists
Creating lists, indexing, slicing and common methods.
Tuples and Sets
Immutable tuples and unique-element sets.
Dictionaries
Key-value pair data structure.
File Handling
Reading and writing files using open().
OOP
Classes, objects, inheritance and polymorphism basics.
Exception Handling
try, except, finally and custom exceptions.