11.For your strings


#1

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


#3

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


#4

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.


#5

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


#6

Good point! Agree with you