PYTHON-PROGRAMMING COURSE GUIDE

Python for Beginners – Full Course

A chapter-by-chapter readback of the free course by Beau Carnes on freeCodeCamp.org.

Length4:39:59
Chapters31
Modules6
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Instead of isolated syntax demos, every concept from functions to classes is taught while building two playable programs, culminating in a full object-oriented blackjack game coded line by line.

Who it's for
Read this guide if
  • You have zero programming experience and want a single continuous path from variables to classes
  • You want to build working games, not just watch syntax slides
  • You prefer coding along in a free browser IDE with no installation
  • You want a reference covering data structures, loops, functions, OOP, and error handling in one place
Skip ahead if
  • You already know another programming language and only need a syntax cheat sheet
  • You want web frameworks, async, or advanced production topics
  • You need a project-based course outside of games
  • You require exercises with graded solutions rather than guided demos
In brief
  • Duration: 4 hours 40 minutes (16,799 seconds) across 28 transcript sections
  • Two projects built line by line: rock-paper-scissors and a blackjack game
  • Tooling: Replit online IDE; local options via Python.org REPL and VS Code are also shown
  • Level: absolute beginner — no prior programming experience required
  • Core-features section is inspired by Flavio Copes' Python Handbook, available on freeCodeCamp

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

First Program: Rock-Paper-Scissors

0:30

Introduction

Why Python is popular (automation, web, data, machine learning), what Replit offers, and the two projects you will build.

3:11

Variables, Functions, and Return Values

Creating variables with the assignment operator, snake_case naming, defining functions with def, indentation rules, and the return statement.

12:28

Dictionaries and the choices Object

Storing player and computer choices as key-value pairs in a dictionary and returning them from the get_choices function.

16:54

The random Library and Lists

Importing the random library, building a list of options, and using random.choice to let the computer pick a move.

21:24

If Statements and Comparisons

Writing check_win with arguments, comparison operators like ==, and the first tie condition.

28:30

F-Strings and Refactoring

Printing results with f-strings, using and/elif for win-loss logic, and refactoring into nested if statements.

38:05

Finishing the Game

Reading dictionary values with bracket notation, wiring the functions together, and successfully playing the completed game.

Running Python Locally and Core Basics

43:50

Installing and Running Python

Downloading from Python.org, using the interactive REPL, and running files with the VS Code Python extension.

48:44

Variables, Expressions, and Comments

Naming rules, expressions versus statements, hash-mark comments, and why indentation defines code blocks in Python.

54:59

Data Types and Casting

Strings, ints, floats, checking types with type() and isinstance, and converting values with constructors.

Operators, Strings, and Numbers

1:00:20

Operators

Arithmetic, comparison, logical, and bitwise operators plus is, in, augmented assignment, and one-line ternary conditionals.

1:09:18

Strings and String Methods

Concatenation, multi-line strings, upper/lower/title methods, len, escaping with backslashes, and indexing characters.

1:20:28

Slicing, Booleans, and Truthiness

Positive and negative indexing with slices, True/False capitalization, truthy and falsy values, and any()/all().

1:25:56

Numbers, Enums, and Input

Complex numbers, abs, round, enum constants, and capturing user input with input().

Data Structures and Functions

1:34:43

Control Statements

How if/elif/else blocks execute based on indentation, and the order conditions are evaluated.

1:36:48

Lists

Creating lists, indexing and slicing, and the append, extend, remove, pop, insert, sort, and sorted methods.

1:50:06

Tuples

Immutable ordered sequences: indexing, len, in, slicing, and combining tuples with +.

1:55:31

Dictionaries and Sets

Key-value access, get/pop/keys/items methods, and set operations like intersection, union, difference, and deduplication.

2:06:17

Functions Deep Dive

Parameters versus arguments, default values, pass-by-reference for mutables, multiple returns, scope, nested functions, and closures.

2:26:32

Loops

While loops with counters, for loops over sequences, range, enumerate, and break/continue.

OOP, Modules, and Language Features

2:33:03

Classes and Objects

Defining classes with class, the __init__ constructor, self, and inheritance.

2:39:10

Modules and the Standard Library

Importing your own files, __init__.py for subfolders, standard library highlights like math and random, and sys.argv versus argparse.

2:52:45

Lambdas, map, filter, and reduce

Anonymous single-expression functions and applying them with map, filter, and functools.reduce.

3:02:25

Recursion and Decorators

Recursive factorial with a base case, writing decorators to wrap functions, docstrings, and type annotations with mypy.

3:11:34

Exceptions and pip

try/except/else/finally, raising custom exceptions, the with statement for files, and installing packages with pip.

3:28:16

Comprehensions and Polymorphism

List comprehensions, polymorphic methods across classes, and operator overloading with dunder methods like __gt__.

Final Project: Blackjack

3:32:48

Cards and Deck Building

Representing suits and ranks with lists, building 52 cards with nested loops, shuffling, and a deal function.

3:55:09

Card Values and Refactoring

Assigning blackjack values with if/elif/else, moving logic into dictionaries, and starting the Deck class.

4:03:34

Deck, Card, and Hand Classes

Using __init__, self, __str__, and safeguards; building a Hand class with ace value handling and getter methods.

4:15:29

Game Logic

The Game class with a play loop, input validation via try/except, hit-or-stand choices, and check_winner conditions.

4:25:12

Finishing and Testing

Dealer draw rules, final display, debugging real error messages, and a successful multi-game test.

Moment by moment

TimeWhy it matters
43:04The first complete program — rock-paper-scissors — runs successfully
1:13:16Overview of local install options: Python.org, the REPL, and VS Code
2:09:26Parameters vs arguments and mutable vs immutable pass-by-reference explained
3:04:29Recursion and decorators: two concepts beginners usually meet much later
4:25:12The finished blackjack game is tested across three full games

Do this next

  1. Rebuild rock-paper-scissors from memory in Replit without rewatching the first section
  2. Extend the blackjack game with betting, multiple decks, or a score history file
  3. Rewrite one blackjack loop using list comprehensions and refactor a win check with the ternary operator

Common questions

Do I need to install anything to follow this course?

No. The course runs entirely in Replit, a free browser-based IDE. The video also shows how to install Python locally or use VS Code if you prefer.

What do you actually build in the course?

Two complete programs coded line by line: a rock-paper-scissors game early on and, in the final section, a full blackjack game using classes like Card, Deck, Hand, and Game.

How long is the course and what does it cover?

About 4 hours 40 minutes, covering variables, data types, operators, strings, lists, tuples, dictionaries, sets, functions, loops, OOP, modules, exceptions, pip, and more.

Is any prior programming experience required?

No. The course explicitly assumes no previous experience and explains fundamentals like variables, functions, and conditionals from scratch.

Spot a mistake?

Every chapter summary on this page is hand-checked against the actual video, but errors can still slip through. If you spot a wrong timestamp, an inaccurate summary, or a missing topic, email us and we will verify and fix it.

More course guides