Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 100 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 100

    CONTROL STRUCTURES IN                                                                    CHAPTER

                     PYTHON                                                                                     8

                                                                                Topics Covered                      95%
                                  Hello  Shweta!  I have  a  question  for          Control Structure

                                  you, how do you make a decision?                  Sequential Statements
                                                                                    Selection Statements

                     Well, to make a decision I rely on my previous experiences and the possible
                     outcomes of the decision I am about to make.

                                    Well said. And how do you think a computer takes decisions?

                                                             I am not sure about that, Techie.

                                   Normally, a decision is an answer to a condition. In programming languages, we
                                   have statements that allow the computer to test a condition and determine an
                                   outcome. In this chapter, you will learn about these statements in detail.

                                                                                            Control Structures in Python  99

| 95 96 97 98 99 100 101 102 103 104 105 |