Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 110 - 2611_SmartGPT Pro V(5.0) C-7
P. 110

    FLOW OF CONTROL                                                                        CHAPTER

                      IN PYTHON                                                                                8

                                                                                 Topics Covered                      95%

                                                                                     Python Statements-Flow of Control
                                   Hey, Shweta!                                      Python Selection Statements
                                                                                     Ternary Operator in Python
                                                                                     Python Iterative Statements
                                                                                     The Infinite Loop
                                                                                     Jump Statements
                                                                                     Some More Programs

                      How does  a computer make
                      decisions?

                                     The computer uses conditional statements to check if something is true or

                                     false and then decides what to do.

                                                                   So, it’s like  asking  a question  and
                                                                   doing something if it’s true?

                                     Exactly!  Loops help the computer  repeat  actions
                                     until a condition is met.

                      108   Computer Science (V5.0)-VII

| 105 106 107 108 109 110 111 112 113 114 115 |