Page 91 - tp_Modula_v2.0
P. 91
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 89

