Conditional Statements in Python (if/elif/else) – Real Python (original) (raw)

Paul Mealus

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:


Conditional Statements in Python

What’s Included:

Related Learning Paths:

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:

← Browse All Courses