Core: learn it Step 3 of 16 on the Python Developer roadmap
if, elif and else
Use if, elif and else to run different code depending on a condition. Indentation matters in Python: the indented lines belong to the condition above them.
Core: learn it Step 3 of 16 on the Python Developer roadmap
Use if, elif and else to run different code depending on a condition. Indentation matters in Python: the indented lines belong to the condition above them.