Python Notes: Basics to Advanced
Variables
int, float, str, bool. Example: a=10, b=3.14, c='Hello'
Input/Output
input(), print()
Operators
Arithmetic, Comparison, Logical
Conditions
if, elif, else
Loops
for, while
Functions
def function_name():
Strings
Indexing, slicing, methods
Lists
append, remove, sort
Tuples
Immutable collections
Sets
Unique values
Dictionaries
Key-value pairs
File Handling
open, read, write
Exception Handling
try, except
OOP
Classes, Objects, Inheritance
Lambda
Anonymous functions
Modules
import math
DSA Practice
Factorial, Fibonacci, Searching, Sorting
Projects
Calculator, To-Do App, Expense Tracker, Weather App