Module 3 - Section 0 - Forget == Repeat :)

This section is the repetition of the previous 2 modules

3.0.1 - What starts with an If, ends with a decision

Perhaps the most well-known statement type is the if statement. For example:


Be careful of the indentation. One space character in the wrong place can damage a program of a thousand lines. There can be zero or more elif parts, and the else part is optional. The keyword ‘elif‘ is short for ‘else if’, and is useful to avoid excessive indentation. An if ... elif ... elif ... sequence is a substitute for the switch or case statements found in other programming languages.