Conditions

if, elif, else, and combining tests.

Python checks each condition from the top and runs the first block that is true.

Expected output
A

Combining conditions

Expected output
Hall ticket issued
Weekend batch

Empty values count as false, so if name: is a short way to check that a string is not empty.

โ† StringsLoops โ†’