Page 118 - Plus_V2.2_C6_Flipbook
P. 118

fun Zone








                     1.  a = 4.5                                        2.  y = 10

                        b = 2                                              y += 2
                        print (a//b)                                       print(y)


                      3.  p, q, r = 10, 20 ,30                           4.  var1 = 1
                         print(p, q, r)                                     var2 = 2

                      5.  a = 4                                             var3 = 3

                         b = 11                                             print(var1 + var2 + var3)

                         print(a or b)
                         print(a > 2)




                      Let's exPLore                                                                 Experiential Learning

                      Surf the Internet and find more information about operators precedence.





                      teCh PraCtiCe                                                                Computational Thinking


                    Write a program to:
                    1.  Convert Celsius to Fahrenheit using the formula:  (Celsius * 1.8) + 32

                    2.  Convert kilometre unit to metre.
                    3.  Input five names from the user.
                    4.  Calculate the area of a square.
                    5.  Add two numbers.





                                                          For The Teacher

                        Discuss about Python programming modes with the students.

                        Go through all the other topics covered in this chapter.

                        Tell the students about the importance of Python.




                  116   Premium Edition-VI
   113   114   115   116   117   118   119   120   121   122   123