Python Course
The go-to language for AI and automation.
Master Python from fundamentals to advanced topics. Build real-world applications, automate tasks, and dive into AI/ML.
Level: Beginner · 114 lessons · Start lesson 1 · Interview questions
Curriculum
- Python Introduction — Why Python? What can it build?
- Python Get Started — Install Python, run your first file.
- Python Syntax — Indentation, comments, statements.
- Python Output — print() — your debugging best friend.
- Python Comments — How to write notes Python ignores.
- Python Variables — Storing and naming data.
- Python Data Types — int, float, str, bool, list, tuple, dict, set.
- Python Numbers — Integers, floats, complex.
- Python Casting — int(), float(), str() conversions.
- Python Strings — Quotes, slicing, f-strings.
- Python Booleans — True, False, truthiness.
- Python Operators — Arithmetic, comparison, logical, bitwise.
- Python Arithmetic Operators — +, -, *, /, %, **, // — math on numbers (and surprising overloads).
- Python Assignment Operators — =, +=, -=, *=, augmented + walrus :=.
- Python Comparison Operators — ==, !=, <, >, <=, >= and chained comparisons.
- Python Logical Operators — and, or, not — with short-circuit evaluation.
- Python Identity Operators — is and is not — same object vs same value.
- Python Membership Operators — in and not in — works on every sequence type.
- Python Bitwise Operators — &, |, ^, ~, <<, >> — flags, masks, low-level tricks.
- Python Lists — Mutable ordered collections.
- Access List Items — Index, negative index and slicing.
- Change List Items — Replace single items or whole slices.
- Add List Items — append(), insert(), extend().
- Remove List Items — remove(), pop(), del, clear().
- Loop Lists — for, enumerate, while-len.
- List Comprehension — Build a new list in one expressive line.
- Sort Lists — sort() · sorted() · key= and reverse=.
- Copy Lists — list[:] · .copy() · list() — shallow vs deep.
- Join Lists — +, *, extend(), itertools.chain.
- List Methods — All built-in list methods at a glance.
- Python Tuples — Immutable ordered collections.
- Access Tuples — Index, slice & negative-index a tuple.
- Update Tuples — Tuples are immutable — workaround patterns.
- Unpack Tuples — *-rest, packing, parallel assignment.
- Loop Tuples — for, enumerate, while-index.
- Join Tuples — Combine with +, *, and itertools.chain.
- Tuple Methods — All built-in tuple methods at a glance.
- Python Sets — Unordered, unique elements.
- Access Set Items — You can't index — but you can iterate & test membership.
- Add Set Items — add() and update() — keep uniqueness.
- Remove Set Items — remove() · discard() · pop() · clear().
- Loop Sets — for-each iteration is the only way.
- Join Sets — union | · intersection & · difference -.
- Set Methods — All built-in set methods at a glance.
- Python Dictionaries — Key-value lookups.
- Access Items — Dict access via [], get(), .keys(), .values(), .items().
- Change Items — Update a value or merge dicts with update() / |.
- Add Items — Insert a brand-new key/value pair.
- Remove Items — pop(), popitem(), del, clear().
- Loop Dictionaries — Iterate over keys / values / items.
- Copy Dictionaries — .copy() · dict() · deep copies for nested.
- Nested Dictionaries — Dicts inside dicts inside dicts…
- Dictionary Methods — All built-in dict methods at a glance.
- Lists vs Tuples vs Sets vs Dictionaries — When to use which collection — side-by-side comparison.
- Python If...Else — Branching logic.
- Python Match — match/case (Python 3.10+).
- Python While Loops — Repeat while a condition is true.
- Python For Loops — Iterate over collections.
- Python Functions — Reusable, named blocks of code.
- Python Lambda — Anonymous one-expression functions.
- Python Range — Generate sequences of numbers.
- Python Arrays — List vs array.array vs numpy.
- Python Iterators — iter() / next() / for under the hood.
- Python Scope — Local · Enclosing · Global · Built-in (LEGB rule).
- Python Modules — Re-using code with import.
- Python Dates — datetime, date, timedelta.
- Python Math — math module + arithmetic helpers.
- Python JSON — Encode / decode JSON.
- Python RegEx — Pattern matching with re.
- Python PIP — Installing third-party packages.
- Python String Formatting — %, .format(), and f-strings.
- Python None — The 'no value' sentinel.
- Python User Input — Reading input() at runtime.
- Python VirtualEnv — Isolating project dependencies.
- Python Try...Except — Handle errors gracefully.
- Python OOP — Why object-oriented? 4 pillars overview.
- Python Classes & Objects — class · instance · attributes.
- Python __init__ — The constructor — runs on creation.
- Python self — Why every method takes self.
- Python Class Properties — Attributes vs class-level fields.
- Python Class Methods — instance · class · static methods.
- Python Inheritance — Re-using behaviour from a parent class.
- Python Polymorphism — Same call, different behaviour per type.
- Python Encapsulation — Hiding state with _private / __mangled.
- Python Inner Classes — Classes inside classes for grouping.
- Python File Handling — Open, read, write, close.
- Python Read Files — .read() · .readline() · .readlines().
- Python Write/Create Files — 'w', 'a', 'x' modes explained.
- Python Delete Files — os.remove() · os.path.exists().
- Python NumPy — Fast numeric arrays for science & ML.
- Python Pandas — DataFrames for tabular analysis.
- Python SciPy — Scientific computing on top of NumPy.
- Python Django — Full-stack web framework.
- Lists and Arrays (DSA) — Indexed, contiguous storage.
- Python Stacks — LIFO — last in, first out.
- Python Queues — FIFO — first in, first out.
- Python Linked Lists — Nodes connected by .next pointers.
- Python Hash Tables — O(1) average lookup via hashing.
- Python Trees — Hierarchical parent → child structure.
- Python Binary Trees — Each node has at most 2 children.
- Python Binary Search Trees — Left < parent < right invariant.
- Python AVL Trees — Self-balancing BST — height stays O(log n).
- Python Graphs — Vertices + edges — model networks & maps.
- Python Linear Search — Walk every element until you find it. O(n).
- Python Binary Search — Halve the search space each step. O(log n).
- Python Bubble Sort — Repeatedly swap adjacent out-of-order pairs.
- Python Selection Sort — Pick the min, swap to the front.
- Python Insertion Sort — Insert each element into its sorted spot.
- Python Quick Sort — Pick a pivot, partition, recurse.
- Python Counting Sort — Counts occurrences — O(n + k).
- Python Radix Sort — Sort by each digit — fast for small ints.
- Python Merge Sort — Divide, sort halves, merge — O(n log n).
- Python Exam Questions — High-yield Python theory + program questions repeatedly asked in B.Tech / college exams.
- Viva Questions — 20 most-asked Python viva questions with one-line answers.