Create isolated project setups on all platforms, and gain a deep understanding of Python’s virtual environments created with the venv module.
I lead Python developer education at Real Python as Head of Content Strategy and I still teach hands-on. Below are the tutorials and video courses I’ve authored for a community of more than a million developers, alongside some earlier writing from my Medium days (2017–2018). Newest first.
What Does if name == “main” Do in Python?
See how Python’s if name == “main” check runs code only when the file is executed, so your imports stay clean and your scripts gain a clear entry point.
Interacting With Python
In this tutorial, you’ll explore the various ways of interacting with Python. You’ll learn about the REPL for quick testing and running scripts, as well as how to work with IDEs, Jupyter Notebooks, and online interpreters.
Introduction to Web Scraping With Python
In this video course, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup.
Generate Images With DALL·E and the OpenAI API
Learn to use the OpenAI Python library to create images with DALL·E, a state-of-the-art latent diffusion model. In this tutorial, you’ll explore creating images and generating image variations. You’ll also interact with DALL·E using API calls and incorporate this functionality into your Python scripts.
Web Scraping With Scrapy and MongoDB
This tutorial covers how to write a Python web crawler using Scrapy to scrape and parse data, and then store the data in MongoDB.
Simulate a Text File in Python
Testing an application that reads files from a disk can be complicated. It may depend on the machine, require special access, or be frustratingly slow. This course shows you how to simulate a text file using Python to simplify testing.
Exercises Course: Introduction to Web Scraping With Python
In this course, you’ll practice the main steps of the web scraping process. You’ll write a script that uses Python’s requests library to scrape and parse data from a website. You’ll also interact with HTML forms using tools like Beautiful Soup and Mechanical Soup to extract specific information.
Prompt Engineering: A Practical Example
Learn prompt engineering techniques with a practical, real-world project to get better results from large language models. This tutorial covers zero-shot and few-shot prompting, delimiters, numbered steps, role prompts, chain-of-thought prompting, and more. Improve your LLM-assisted projects today.
Python Basics Exercises: Lists and Tuples
In this Python Basics Exercises video course, you’ll practice defining and manipulating Python lists and tuples in your code. By reinforcing your skills, you’ll gain confidence in using lists and tuples in your programming projects.