Answers for "Iterate through characters of a string in python"

0

Iterate through characters of a string in python

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

Code answers related to "Iterate through characters of a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language