Saved Bookmarks
| 1. |
Consider the String Str= “Annual Exam 2021”. Write statements in python to implement 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» DISPLAY the STARTING INDEX for the SUBSTRING “EXAM | |