Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 98 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 98

    COding Zone       COding Zone    {}      =     COding Zone Computational Thinking
                                    {C ding z ne}
                                                                                                                 []
                                                                                                        COding Zone
                                                                              </>
                         What will be the output of the following programs?

                         a.  a = 4.5
                           b = 2
                           print (a//b)

                         b.  y = 10
                           y += 2

                           print(y)

                         c.  p, q, r = 10, 20 ,30
                           print(p, q, r)

                         d.  x = 11

                           y = 3
                            print((40 + 10 // x) < 7 or 7 ** y < 13)

                         e.  a = 4
                           b = 11
                           print(a or b)

                           print(a > 2)

                         f.  a = 7

                           b = 8
                            print((50 - 6 // a) > 9 or 9 ** b > 11)

                         g. a = 10

                           b = 4
                           print((a == 6) + b)

                           CAREER HERE

                     People who are expert in Python may pursue their career as a Software Developer.

                       FOR THE TEACHER

                       1.  Explain various types of data types in detail.
                       2.  Give small programs related to interesting, real-life examples to the students.

                                                                                        Tokens and Data Types in Python  97

| 93 94 95 96 97 98 99 100 101 102 103 |