how to loop through string in python

Solutions on MaxInterview for how to loop through string in python by the best coders in the world

showing results for - "how to loop through string in python"
Lise
15 Nov 2018
1word = "test"
2for letter in word:
3	print(letter)
Emely
22 Jun 2019
1for i in "Hello":
2  print(i)