👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
iterate over string python
In Python, the best way to iterate over characters of string is to use a for loop:
for ch in "My string to iterate":
print (ch)
In Python, the best way to iterate over characters of string is to use a for loop:
for ch in "My string to iterate":
print (ch)