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.
Answers
Answered by
1
(ii) Display the starting index for the substring “Exam
Similar questions