Hey there everyone,
I am new to programming, and have been enjoying my time learning Python 3 these days! During one of the exercises about while loops, titled “While Loops: Lists” I came across a concept that I do not understand, and was wondering if someone can clarify this for me
python_topics = ["variables", "control flow", "loops", "modules", "classes"] length = len(python_topics) index = 0 while index < length: print("I am learning about " + python_topics[index]) index += 1
Can someone explain what “index” is doing in this code and explain how in the print portion the “python_topics” and “index” are interacting?
This would be very helpeful!
Thank you all in advance