def ExamOn(mystr): newstr = "" count = 0 for i in mystr: if count % 2 != 0: newstr = newstr + str(count - 1) else: newstr = newstr + i.lower() count += 1 newstr = newstr + mystr[:2] print("The new string is:", newstr) ExamOn("GenX")
Analyse the characters of William Douglas from ‘Deep Water’ and Mukesh from ‘Lost Spring’ in terms of their determination and will power in pursuing their goals.