Back Navigation Next Navigation Video 5: Conditionals (page 2 of 10)

The Python interpreter knows what code to execute in a conditional based on the ":" at the end of the Boolean expression and the spaces, tabs or indents after the ":". Spaces, tabs, or indents are key. If you have the spaces wrong, then the interpreter gets confused.

Conditionals