course
Python IF, ELIF, and ELSE Statements
In this tutorial, you will learn exclusively about Python if else statements.
Aug 8, 2018 · 9 min read
What is the if statement in Python?
How do I use the elif statement in Python?
Can I have multiple elif statements in a single if block?
What is the else statement in Python?
Can I use the else statement without any if or elif statements?
Topics
Python Courses
4 hr
6M
course
Introduction to Data Science in Python
4 hr
470.6K
course
Intermediate Python
4 hr
1.2M
See More
RelatedSee MoreSee More
tutorial
if…elif…else in Python Tutorial
Learn how you can create if…elif…else statements in Python.
DataCamp Team
4 min
tutorial
IF ELSE in Scala
In this tutorial, you'll learn about conditional IF ELSE statements in the Scala programming language.
Aditya Sharma
5 min
tutorial
Python Tutorial for Beginners
Get a step-by-step guide on how to install Python and use it for basic data science functions.
Matthew Przybyla
12 min
tutorial
Python List Index() Tutorial
In this tutorial, you will learn exclusively about the index() function.
Sejal Jaiswal
6 min
tutorial
Inner Classes in Python
In this basic Python tutorial, you'll learn about why and when you should use inner classes.
Hafeezul Kareem Shaik
5 min