mystring = "Hello python"; for ch in mystring: print("Index of Element :", mystring.index(ch) , " - Element of string:",ch)