Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 107 - 2607_Trackpad_Pro_5.1_flipbook_C6
P. 107

    6.   Execute the following Python expressions in interactive mode and write the output in the space given:
                        a.  56*8+13                           ________________________
                        b.  49/7 – 5+15 – 10                  ________________________
                        c.  34*98*2*5 – 1076/2                ________________________

                        d.  74+98+23+76-23-45-90              ________________________
                        e.  90/10+25*67-22                    ________________________

                         LAB ACTIVITY                                                                     Subject Enrichment

                          Visit your computer lab and perform the following actions:
                             Print the following in Python:
                             (a)  Five famous landmarks of your city

                             (b)  Names of any five countries that you wish to visit
                             (c)  Your five favourite cars
                             Write a Python program to calculate the multiplication of two numbers.

                             Write a Python program to:
                             (a)  convert Celsius to Fahrenheit using the formula:  (Celsius * 1.8) + 32
                             (b)  convert kilometre unit to metre

                             (c)  input five names from the user and display them
                             (d)  calculate area of a sphere

                     GROUP DISCUSSION                                                                       Communication

                        Divide the students in the two groups and organise a group discussion on different modes of
                        Python IDLE.

                             COding Zone       COding Zone    {}      =      COding Zone Computational Thinking
                                    {C ding z ne}
                                                                                                                []
                                                                                                       COding Zone
                                                                             </>
                        1.  Find the errors in the following codes and rewrite the incorrect statements correctly:
                            a.  a = 10
                               b = 20
                               c = 10 + a + 34
                               print(d)

                            b.  a = "Divya"
                               b = "Sharma"

                               print("Result of + operator is: " b-a)

                                                                                                 Introduction to Python  105

| 102 103 104 105 106 107 108 109 110 111 112 |