Page 81 - Modular v1.1 Pyhton
P. 81

Periodic Assessment-3

                                                     (Based on chapters 6 & 7)



                 A.     Write a program in Python to count the number of vowels in the string "Mango".



















                 B.     Write a Python code to delete all odd numbers from a list [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].



















                 C.    Write a short note on the following:

                       1.  Escape sequences with strings

                         ……………………………………………………………………………………………………………………………………………………

                         ……………………………………………………………………………………………………………………………………………………

                       2.  Traversing a list
                         ……………………………………………………………………………………………………………………………………………………

                         ……………………………………………………………………………………………………………………………………………………

                       3.  String built-in functions

                         ……………………………………………………………………………………………………………………………………………………

                         ……………………………………………………………………………………………………………………………………………………









                                                                                         Periodic Assessment-3    79
   76   77   78   79   80   81   82   83   84   85   86