11.For your strings


Hi! Can anyone explain why this works? I can see it does I just have no idea why it works.

word = "eggs!"

for i in word:
print i


so you don't know that we can loop for each character in a word , like a list ?


No need for being snobby :slight_smile: You can answer that question yourself I believe. I was curious it worked in such a simple manner because normally things aren't so simple when coding.


i m not , i just reply your question ( i didn't understand what are you lookig for so i answred by question and an answer ) , You can reply by i know or i don't ( we all need help at same point) , Thanks


Good point! Agree with you