
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 55-lesson course built from Code and Debug's 11h 25m of YouTube video. 7 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Code and Debug on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Download Python 3.13 from python.org, run the installer with 'Add python.exe to PATH' checked, and verify with `python --version` in CMD.
Install Visual Studio Code, add Python and Code Runner extensions, enable format-on-save with Black Formatter, and configure terminal settings.
Create valid variable names, understand dynamic typing, and identify core data types (int, float, str, bool) using `type()`.
Print values using commas, f-strings, and the `sep`/`end` parameters; use comments and auto-formatting on save.
Convert between int, float, str; take user input with `input()` and cast to int for arithmetic; handle ValueError on bad input.
Apply +, -, *, /, //, %, **; compare with ==, !=, >, <, >=, <=; combine conditions with and, or, not.
Write conditional branches with if/elif/else, nest conditions, and use the ternary operator for one-line assignments.
Build while loops with a counter, avoid infinite loops with Ctrl+C, and accumulate totals or print patterns.
Iterate with `for i in range(start, stop, step)`, access list elements by index, and compute sums, tables, and factor lists.
Exit a loop immediately with `break`; skip the rest of an iteration with `continue`.
Nest for-loops to print 2-D patterns (triangles, squares, number grids); derive row/column logic and reverse half-patterns.
Define reusable blocks with `def`, pass arguments positionally or by keyword, return values instead of printing, and use `None` default.
Explain default parameter values and keyword argument usage in function calls.
Distinguish local scope (inside function) from global scope; use `global` keyword to modify a global variable inside a function.
Create anonymous one-liner functions with `lambda`; use for simple transformations like squaring or finding max of three numbers.
Build lists with mixed types, access elements by index (positive/negative), and create sublists via slicing `[start:stop:step]`.
Iterate with for-loops (by value, by index with range, with enumerate), reverse iteration, and count evens/odds.
Use append, insert, pop, remove, sort, reverse, index, count, copy, clear; understand in-place vs new-list behavior.
Use append, insert, pop, remove, sort, reverse, index, count, copy, clear; understand in-place vs new-list behavior.
Use append, insert, pop, remove, sort, reverse, index, count, copy, clear; understand in-place vs new-list behavior.
Use append, insert, pop, remove, sort, reverse, index, count, copy, clear; understand in-place vs new-list behavior.
Use append, insert, pop, remove, sort, reverse, index, count, copy, clear; understand in-place vs new-list behavior.
Create lists in one line with `[expr for item in iterable if condition]`; filter evens, squares, or divisible numbers.
Represent matrices as list-of-lists; access with `matrix[i][j]`, iterate rows/columns, compute sums, and transpose dynamically.
Create tuples with parentheses; they are immutable (no append/pop); access via index/slice; unpack into variables.
Create dicts with `{key: value}`; keys must be immutable; access with `dict[key]` or `.get(key, default)`; add/update via assignment.
Use .keys(), .values(), .items() for iteration; .pop(), .update(), .copy(); sort by key or value with lambda.
Use .keys(), .values(), .items() for iteration; .pop(), .update(), .copy(); sort by key or value with lambda.
Use .keys(), .values(), .items() for iteration; .pop(), .update(), .copy(); sort by key or value with lambda.
Build dicts with `{k:v for ...}`; filter by value; merge two lists into a dict using `zip(keys, values)`.
Create sets with `{}`; add with `.add()`/`.update()`, remove with `.remove()`/`.discard()`/`.pop()`; union, intersection, difference.
Access characters by index, slice with `[::-1]` to reverse; strings are immutable鈥攎ethods return new strings.
Loop over characters with for/while/enumerate; check substrings with `in`/`not in`; count vowels or words.
Convert case with .upper(), .lower(), .title(), .capitalize(), .swapcase(); original string unchanged unless reassigned.
Validate content with .isalpha(), .isdigit(), .isalnum(), .isspace(); all return True/False.
Split strings into word lists with .split(); join lists into strings with separator.join(list); strip whitespace with .strip(), .lstrip(), .rstrip().