0
Please help me understand
I am trying to understand why this code does what it does, but I don't understand what the sections of code are doing. The 2 following lines from the code at the bottom are what I am confused about. word = words[counter] counter = counter + 1 words = ["hello", "world", "spam", "eggs"] counter = 0 max_index = len(words) - 1 while counter <= max_index: word = words[counter] print(word + "!") counter = counter + 1
1 Respuesta
+ 1
this is a duplicate thread, your question have been answered https://www.sololearn.com/Discuss/1850103/?ref=app
you can remove this post to ensure easy surfing of Q&A