Saved Bookmarks
| 1. |
Consider the String Str= “Annual Exam 2021”. Write statements in python toimplement the following:(i) Replace all the occurrences of „a‟ with the string „*‟.(ii) Display the starting index for the substring “Exam”.(iii) Remove “Ann” from the left of the string.(iv) Check whether string contains “ual” or not?(v) Repeat the string Str three times. |
| Answer» | |