the indented partskip printing the extra luggage charge in any eventwhen you have finished with the if statement (whether it actually does anything or not)go on to the next statement that is not indented under the if in this case that is the statement printing "thank youthe general python syntax for simple if statement is if condition indentedstatementblock if the condition is truethen do the indented statements if the condition is not truethen skip the indented statements another fragment as an exampleif balance transfer -balance transfer enough from the backup accountbackupaccount backupaccount transfer balance balance transfer as with other kinds of statements with heading and an indented blockthe block can have more than one statement the assumption in the example above is that if an account goes negativeit is brought back to by transferring money from backup account in several steps in the examples above the choice is between doing something (if the condition is trueor nothing (if the condition is falseoften there is choice of two possibilitiesonly one of which will be donedepending on the truth of condition if-else statements run the example programclothes py try it at least twicewith inputs and then as you can seeyou get different resultsdepending on the input the main code of clothes py istemperature float(input('what is the temperature')if temperature print('wear shorts 'elseprint('wear long pants 'print('get some exercise outside 'the middle four lines are an if-else statement again it is close to englishthough you might say "otherwiseinstead of "else(but else is shorter!there are two indented blocksonelike in the simple if statementcomes right after the if heading and is executed when the condition in the if heading is true in the if-else form this is followed by an elselinefollowed by another indented block that is only executed when the original condition is false in an if-else statement exactly one of two possible indented blocks is executed line is also shown dedented nextremoving indentationabout getting exercise since it is dedentedit is not part of the if-else statementsince its amount of indentation matches the if headingit is always executed in the normal forward flow of statementsafter the if-else statement (whichever block is selectedthe general python if-else syntax is if condition indentedstatementblockfortruecondition elseindentedstatementblockforfalsecondition these statement blocks can have any number of statementsand can include about any kind of statement see graduate exercise (page more on flow of control