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

  1. Python Introduction — Why Python? What can it build?
  2. Python Get Started — Install Python, run your first file.
  3. Python Syntax — Indentation, comments, statements.
  4. Python Output — print() — your debugging best friend.
  5. Python Comments — How to write notes Python ignores.
  6. Python Variables — Storing and naming data.
  7. Python Data Types — int, float, str, bool, list, tuple, dict, set.
  8. Python Numbers — Integers, floats, complex.
  9. Python Casting — int(), float(), str() conversions.
  10. Python Strings — Quotes, slicing, f-strings.
  11. Python Booleans — True, False, truthiness.
  12. Python Operators — Arithmetic, comparison, logical, bitwise.
  13. Python Arithmetic Operators — +, -, *, /, %, **, // — math on numbers (and surprising overloads).
  14. Python Assignment Operators — =, +=, -=, *=, augmented + walrus :=.
  15. Python Comparison Operators — ==, !=, <, >, <=, >= and chained comparisons.
  16. Python Logical Operators — and, or, not — with short-circuit evaluation.
  17. Python Identity Operators — is and is not — same object vs same value.
  18. Python Membership Operators — in and not in — works on every sequence type.
  19. Python Bitwise Operators — &, |, ^, ~, <<, >> — flags, masks, low-level tricks.
  20. Python Lists — Mutable ordered collections.
  21. Access List Items — Index, negative index and slicing.
  22. Change List Items — Replace single items or whole slices.
  23. Add List Items — append(), insert(), extend().
  24. Remove List Items — remove(), pop(), del, clear().
  25. Loop Lists — for, enumerate, while-len.
  26. List Comprehension — Build a new list in one expressive line.
  27. Sort Lists — sort() · sorted() · key= and reverse=.
  28. Copy Lists — list[:] · .copy() · list() — shallow vs deep.
  29. Join Lists — +, *, extend(), itertools.chain.
  30. List Methods — All built-in list methods at a glance.
  31. Python Tuples — Immutable ordered collections.
  32. Access Tuples — Index, slice & negative-index a tuple.
  33. Update Tuples — Tuples are immutable — workaround patterns.
  34. Unpack Tuples — *-rest, packing, parallel assignment.
  35. Loop Tuples — for, enumerate, while-index.
  36. Join Tuples — Combine with +, *, and itertools.chain.
  37. Tuple Methods — All built-in tuple methods at a glance.
  38. Python Sets — Unordered, unique elements.
  39. Access Set Items — You can't index — but you can iterate & test membership.
  40. Add Set Items — add() and update() — keep uniqueness.
  41. Remove Set Items — remove() · discard() · pop() · clear().
  42. Loop Sets — for-each iteration is the only way.
  43. Join Sets — union | · intersection & · difference -.
  44. Set Methods — All built-in set methods at a glance.
  45. Python Dictionaries — Key-value lookups.
  46. Access Items — Dict access via [], get(), .keys(), .values(), .items().
  47. Change Items — Update a value or merge dicts with update() / |.
  48. Add Items — Insert a brand-new key/value pair.
  49. Remove Items — pop(), popitem(), del, clear().
  50. Loop Dictionaries — Iterate over keys / values / items.
  51. Copy Dictionaries — .copy() · dict() · deep copies for nested.
  52. Nested Dictionaries — Dicts inside dicts inside dicts…
  53. Dictionary Methods — All built-in dict methods at a glance.
  54. Lists vs Tuples vs Sets vs Dictionaries — When to use which collection — side-by-side comparison.
  55. Python If...Else — Branching logic.
  56. Python Match — match/case (Python 3.10+).
  57. Python While Loops — Repeat while a condition is true.
  58. Python For Loops — Iterate over collections.
  59. Python Functions — Reusable, named blocks of code.
  60. Python Lambda — Anonymous one-expression functions.
  61. Python Range — Generate sequences of numbers.
  62. Python Arrays — List vs array.array vs numpy.
  63. Python Iterators — iter() / next() / for under the hood.
  64. Python Scope — Local · Enclosing · Global · Built-in (LEGB rule).
  65. Python Modules — Re-using code with import.
  66. Python Dates — datetime, date, timedelta.
  67. Python Math — math module + arithmetic helpers.
  68. Python JSON — Encode / decode JSON.
  69. Python RegEx — Pattern matching with re.
  70. Python PIP — Installing third-party packages.
  71. Python String Formatting — %, .format(), and f-strings.
  72. Python None — The 'no value' sentinel.
  73. Python User Input — Reading input() at runtime.
  74. Python VirtualEnv — Isolating project dependencies.
  75. Python Try...Except — Handle errors gracefully.
  76. Python OOP — Why object-oriented? 4 pillars overview.
  77. Python Classes & Objects — class · instance · attributes.
  78. Python __init__ — The constructor — runs on creation.
  79. Python self — Why every method takes self.
  80. Python Class Properties — Attributes vs class-level fields.
  81. Python Class Methods — instance · class · static methods.
  82. Python Inheritance — Re-using behaviour from a parent class.
  83. Python Polymorphism — Same call, different behaviour per type.
  84. Python Encapsulation — Hiding state with _private / __mangled.
  85. Python Inner Classes — Classes inside classes for grouping.
  86. Python File Handling — Open, read, write, close.
  87. Python Read Files — .read() · .readline() · .readlines().
  88. Python Write/Create Files — 'w', 'a', 'x' modes explained.
  89. Python Delete Files — os.remove() · os.path.exists().
  90. Python NumPy — Fast numeric arrays for science & ML.
  91. Python Pandas — DataFrames for tabular analysis.
  92. Python SciPy — Scientific computing on top of NumPy.
  93. Python Django — Full-stack web framework.
  94. Lists and Arrays (DSA) — Indexed, contiguous storage.
  95. Python Stacks — LIFO — last in, first out.
  96. Python Queues — FIFO — first in, first out.
  97. Python Linked Lists — Nodes connected by .next pointers.
  98. Python Hash Tables — O(1) average lookup via hashing.
  99. Python Trees — Hierarchical parent → child structure.
  100. Python Binary Trees — Each node has at most 2 children.
  101. Python Binary Search Trees — Left < parent < right invariant.
  102. Python AVL Trees — Self-balancing BST — height stays O(log n).
  103. Python Graphs — Vertices + edges — model networks & maps.
  104. Python Linear Search — Walk every element until you find it. O(n).
  105. Python Binary Search — Halve the search space each step. O(log n).
  106. Python Bubble Sort — Repeatedly swap adjacent out-of-order pairs.
  107. Python Selection Sort — Pick the min, swap to the front.
  108. Python Insertion Sort — Insert each element into its sorted spot.
  109. Python Quick Sort — Pick a pivot, partition, recurse.
  110. Python Counting Sort — Counts occurrences — O(n + k).
  111. Python Radix Sort — Sort by each digit — fast for small ints.
  112. Python Merge Sort — Divide, sort halves, merge — O(n log n).
  113. Python Exam Questions — High-yield Python theory + program questions repeatedly asked in B.Tech / college exams.
  114. Viva Questions — 20 most-asked Python viva questions with one-line answers.