How to debug Python code with pdb, the built-in debugger
Learn to find bugs with Python's built-in debugger: pause code with breakpoint(), step through lines, print variables, set breakpoints and inspect a crash after it happens.
Coding guides with working examples, from first loops to clean, tested code.
Learn to find bugs with Python's built-in debugger: pause code with breakpoint(), step through lines, print variables, set breakpoints and inspect a crash after it happens.
Learn the core Git workflow: set up your name, create a repository, stage and commit files, work on a branch, merge it back and fix a simple merge conflict, with real command output.
Learn how to create, activate and check a Python virtual environment with venv, install packages with pip, save them to requirements.txt and avoid the usual setup mistakes.
Learn how to create, read and append to text files in Python with open() and with, how to save data as JSON, and which file mistakes beginners make most often.
Learn how Python lists, tuples and dictionaries differ, how to create and use each one, and how to choose the right container, with tested examples and the mistakes beginners often make.