Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Iterate through string in python using for loop

mystring = "Hello python";
for ch in mystring:
	print("Index of Element :", mystring.index(ch) , " - Element of string:",ch)
Source by www.oraask.com #
 
PREVIOUS NEXT
Tagged: #Iterate #string #python #loop
ADD COMMENT
Topic
Name
5+9 =