Page 124 - Trackpad_V4.0_c7_Flpbook
P. 124

Conditional


               Statements in Python









                Learning Outcomes
                   Conditional Statements                                The if Statement
                   The if…else Statement                                 Nested if Statement
                   The if…elif…else Ladder



                Key Terms

                   Conditional statements: Decide the flow of program execution



                                Come on, let's
                                  play out.



                                                                                             My sister has programmed
                                                                                             this robot. It obeys all her
                                                                                                   instructions.















                                                I am trying to
                                             understand this code.



                                                                     Really! This sounds
                                                                        interesting.







                        Premium Edition-VII
                122
   119   120   121   122   123   124   125   126   127   128   129