Answers for "Iterate through string with index in python using while loop and rang"

0

Iterate through string with index in python using while loop and rang

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
Posted by: Guest on March-05-2022

Code answers related to "Iterate through string with index in python using while loop and rang"

Python Answers by Framework

Browse Popular Code Answers by Language