for i in range(start_pos, len(my_string)):
print(my_string[i])
def iter_starting_at(start_pos, string):
for i in range(start_pos, len(string)):
yield string[i]
for character in iter_starting_at(start_pos, my_string):
print(character)
mystring = "Hello Oraask"
# Getting length of string
lengthOfmystring = len(mystring)
i = 0
# Iterating through the string using while loop
while i < lengthOfmystring:
print("Element of string:" , mystring[i])
i += 1