0
for loop
There is an example program in the app: words = ["Hello", "world", "spam", "eggs"] for word in words: print ('word'+'!') What i dont get: how does python comprehend plural? I replaced 'word(s)' for example with 'poop(s)' and it still works...
2 Antworten
+ 8
~_~ (seriously? go study!)
+ 1
it's not plural that's the name of your variable wich contains hello,world...
shit = ["hello", "world", "spam", "eggs"]
for bull in shit:
print(bull + "!")
still working