PyEzy
Home
Dropdown
Printing in Python
Lists
Loops
If-Else
Functions
If-Else
An if-else statement in Python is used to execute a set of statements if a certain condition is true, and a different set of statements if the condition is false.
If, Elif, and Else Statements