Hello eveyone!
I'm still trying to learn Python3 and i am making progress albeit slowly lol.
I have been trying to learn about 'for loops' but for some reason i can't get them to work the way i want.
So here's an example of a for loop i have been trying to execute.
Could anyone tell me why the above code work doesn't work?
I'm still trying to learn Python3 and i am making progress albeit slowly lol.
I have been trying to learn about 'for loops' but for some reason i can't get them to work the way i want.
So here's an example of a for loop i have been trying to execute.
Code:
# I open a terminal and type python3 then:
>>> word = "elephant"
>>> for letter in word:
... print (letter)
...
Could anyone tell me why the above code work doesn't work?