Page 79 - tp_Modula_v2.0
P. 79
res+= test_str[idx].upper()
else:
res+= test_str[idx].upper()
Information Literacy
print("The resultant string : " + str(res))
G. Application based question.
Taarush wants to print his name in Python. He noticed that it got printed in lowercase. How can he
change it into uppercase?
In the lab Technology Literacy
Write a Python program to:
1. traverse a string "PYTHON" using for loop.
2. convert the string "orange education" to uppercase.
Teacher's Corner
1. Explain string in detail to the students.
2. Give demonstration of creating multiline string to students.
String Handling in Python 77

