Conditional Statements in Python (if/elif/else)

In this step-by-step course you’ll learn how to work with conditional (“if”) statements in Python. Master if-statements step-by-step and see how to write complex decision making code in your programs.

Take the Quiz: Test your knowledge with our interactive “Python Conditional Statements” quiz. You’ll receive a score upon completion to help you track your learning progress:


Interactive Quiz

Python Conditional Statements

Test your understanding of Python conditional statements

What’s Included:

Related Learning Paths:

About Paul Mealus

Paul studies ways to leverage technology to empower business and make life better. Paul has a life goal to become a CIO and more importantly, pet every dog in the world.

» More about Paul

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

deewright on Dec. 30, 2020

Great course and a lot of fun.

Jean Ferreira on Sept. 4, 2019

Best course I’ve done so far here in RealPython, since we made a quick app while learning about If Statements. For sure, this should be the way to go for the next videos.

rklyba on June 15, 2019

Thank you for the course. I like it.

Sachin on May 31, 2019

Liked this course. Building a app under 7 mins was even more awsome.

juanfelix65 on May 16, 2019

This was a cool series.Great course!

slickrick on May 9, 2019

Great course!

RetiringInComo on April 28, 2019

Thought you did a great job!! Can’t wait to eat cake and ice cream with my dogs!!

« Browse All Courses