mystring = "Hello Python" # getting length of string lengthOfmystring = len(mystring) # Iterating the index for var in range(lengthOfmystring): print("Element of string:" , mystring[var])