Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.oraask.com #
 
PREVIOUS NEXT
Tagged: #Iterate #characters #string #python
ADD COMMENT
Topic
Name
3+8 =