DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to loop through every character in a string
string = 'hello' for char in string: print(char) OUTPUT: h e l l o
PREVIOUS
NEXT
Tagged:
#loop
#character
#string
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit