mystring = "Hello Oraask" # Iterating through the string using while loop for i in mystring[6:12:1] : # Print all characters iterated print("Element of string:" , i)