
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 36-lesson course built from freeCodeCamp.org's 4h 40m of YouTube video. 3 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 freeCodeCamp.org on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand the course structure and set up a Python Repl on Replit to start coding immediately in the browser.
Define functions with def, use indentation for scope, call functions, and return values for use elsewhere in the program.
Import the random module, create lists of options, and use random.choice() to assign a random computer move.
Pass arguments into functions, compare values with == and !=, and control flow with if, elif, and else statements.
Simplify repetitive win-checking code using nested if statements and early returns to handle rock-paper-scissors outcomes.
Combine variables and strings using f-strings and the + operator to print dynamic game messages.
Call get_choices() to receive a dictionary, then use bracket notation to extract player and computer choices for the check_win function.
Use comparison operators (>, <, >=, <=, ==, !=) and boolean operators (and, or, not) to build compound conditions.
Write concise conditional expressions with the ternary operator and manipulate strings with methods like upper(), lower(), title(), and split().
Insert special characters with backslash escapes, access individual characters by index, and extract substrings with slicing syntax.
Work with True/False values, understand None as a falsy value, and use truthiness in conditional checks.
Apply arithmetic operators (+, -, *, /, //, %, **) and their in-place variants (+=, -=, etc.) to numbers and string concatenation.
Read raw arguments from sys.argv and build a robust CLI with argparse including flags, choices, and help text.
Create anonymous functions with lambda, then combine them with map, filter, and functools.reduce for data transformations.
Generate lists concisely with comprehensions and implement polymorphic methods so different classes respond to the same interface.
Override comparison and arithmetic operators in classes and use inheritance to share behavior between parent and child classes.
Organize code across files with import/from statements, create packages with __init__.py, and leverage standard-library modules like math, random, and json.
Manipulate sets for uniqueness and math operations, use dictionary methods (get, pop, keys, values, items), and work with immutable tuples.
Design a Card class with suit and rank, build a Deck class that generates 52 Card instances, and implement shuffle() and deal() using random.shuffle and list.pop.
Create a Hand class that holds cards, tracks dealer status, calculates Blackjack value with ace adjustment, and displays cards conditionally.
Implement the Game class with a play() method that prompts for number of games, validates input with try/except and a while loop, and orchestrates the game flow.
Code the dealer's automatic hits until 17, reveal hidden cards, evaluate blackjacks, busts, and final scores to determine the winner.