Page 119 - TP_Pluse_V2.2_Class_6
P. 119

3. p, q, r = 10, 20 ,30

                      print(p, q, r)

                    4.  var1 = 1

                       var2 = 2


                       var3 = 3
                       print(var1 + var2 + var3)


                    5. a = 4

                      b = 11

                      print(a or b)

                      print(a > 2)




                                                                                           21 st
                   Let's exPLore                                                         Century   #Technology Literacy
                                                                                          Skills
                     Surf the Internet and find more information about operators precedence.




                      teCh PraCtiCe                                               Century   #Critical Thinking
                                                                                     21 st
                                                                                    Skills
                   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.











                                                                                        Introduction to Programming  117
   114   115   116   117   118   119   120   121   122   123   124