PyEzy

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