Python Quizzes

Check your Python learning progress and take your skills to the next level with Real Python’s interactive quizzes.

Real Python Quizzes

We created these online Python quizzes as a fun way for you to check your learning progress and to test your skills.

Each quiz takes you through a series of questions. Some of them are multiple choice, some will ask you to type in an answer, and some will require you to write actual Python code. As you make your way through each quiz, it keeps score of which questions you answered correctly.

At the end of each quiz you receive a grade based on your result. If you don’t score 100% on your first try—don’t fret! These quizzes are meant to challenge you and it’s expected that you go through them several times, improving your score with each run.

All of these quizzes were created by professional Python developers with years of experience to ensure you’re learning the skills and techniques that really matter.

Browse Python Quizzes

Ready to test your Python skills? Pick a quiz and jump right in:

Interactive Quiz

Basic Data Types in Python

Test your understanding of the basic data types that are built into Python, like numbers, strings, and Booleans.

Interactive Quiz

How to Run Your Python Scripts

One of the most important skills you need to build as a Python developer is to be able to run Python scripts and code. Test your understanding on how good you are with running your code.

Interactive Quiz

HTTP Requests With the "requests" Library

Test your understanding of the Python "requests" library for making HTTP requests and interacting with web services.

Interactive Quiz

Linear Regression in Python

In this quiz, you'll test your knowledge of linear regression in Python. Linear regression is one of the fundamental statistical and machine learning techniques, and Python is a popular choice for machine learning.

Interactive Quiz

Python Basics: Code Your First Python Program

With Python installed, you’re ready ready to start coding! It's time to write your first Python program.

Interactive Quiz

Python Basics: Conditional Logic and Control Flow

With conditional logic, you can write programs that perform different actions based on different conditions. Paired with functions and loops, conditional logic allows you to write complex programs that can handle many different situations.

Interactive Quiz

Python Basics: Finding and Fixing Code Bugs

Logic errors occur when an otherwise valid program doesn't do what was intended. They cause unexpected behaviors called bugs. Removing bugs is called debugging, and a debugger is a tool that helps you hunt down bugs and understand why they're happening.

Interactive Quiz

Python Basics: Functions and Loops

Functions break code into smaller chunks and are great for defining actions that a program will execute several times throughout your code. Instead of writing the same code each time the program needs to perform the same task, just call the function!

Interactive Quiz

Python Basics: Numbers and Math

You don't need to be a math whiz to program well, but numbers are an integral part of any programming language. Python is no exception.

Interactive Quiz

Python Basics: Scopes

To fully understand functions and loops in Python, you need to be familiar with the issue of scope, which determines where a name is visible within your program.

Interactive Quiz

Python Basics: Strings and String Methods

Strings are a fundamental data type in Python. In simplified terms, strings are collections of text, and they show up in many contexts. For example, strings can come from user input, data read from a file, or messages sent by equipment talking over a network.

Interactive Quiz

Python Concurrency

This is a quiz that will review topics covered in our Speed Up Your Python Program With Concurrency tutorial.

Interactive Quiz

Python Conditional Statements

Test your understanding of Python conditional statements

Interactive Quiz

Python Dictionaries

Test your understanding of Python dictionaries

Interactive Quiz

Python Dictionary Iteration

Dictionaries are one of the most important and useful data structures in Python. Learning how to iterate through a Dictionary can help you solve a wide variety of programming problems in an efficient way. Test your understanding on how you can use them better!

Interactive Quiz

Python f-Strings

In this quiz, you'll test your knowledge of Python f-strings. With this knowledge, you'll be able to include all sorts of Python expressions inside your strings.

Interactive Quiz

Python GUI Programming With Tkinter

In this quiz, you'll test your understanding of Python GUI Programming With Tkinter, the de facto Python GUI framework. Check your knowledge of GUI programming concepts such as widgets, geometry managers, and event handlers.

Interactive Quiz

Python Lambda Functions

Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions. Test your understanding on how you can use them better!

Interactive Quiz

Python Lists and Tuples

Test your understanding of Python lists and tuples.

Interactive Quiz

Python Operators and Expressions

Test your understanding of Python variables and object references.

Interactive Quiz

Python Program Structure

Test your understanding of Python program structure.

Interactive Quiz

Python Sets

Test your understanding of Python sets

Interactive Quiz

Python Strings and Character Data

Test your understanding of Python strings and character data.

Interactive Quiz

Python Threading

This is a quiz that will review topics covered in our An Intro To Threading tutorial.

Interactive Quiz

Python Variables

Test your understanding of Python variables and object references.

Interactive Quiz

Python Virtual Environments: A Primer

In this quiz, you'll test your understanding of Python virtual environments. With this knowledge, you'll be able to avoid dependency conflicts and help other developers reproduce your development environment.

Interactive Quiz

Python "while" Loops

Test your understanding of Python while loops

Interactive Quiz

Reading and Writing CSV Files in Python

This quiz will check your understanding of what a CSV file is and the different ways to read and write to them in Python.

Interactive Quiz

Reading and Writing Files in Python

A quiz used for testing the user's knowledge of the topics covered in the Reading and Writing Files in Python article.

Interactive Quiz

Rounding Numbers in Python

Test your knowledge of rounding numbers in Python.

Interactive Quiz

Splitting, Concatenating, and Joining Strings in Python

In this quiz, you can test your Python skills when it comes to the most fundamental string operations: splitting, concatenating, and joining.

Got feedback on our Python quizzes?

Browse the Latest Tutorials »