I’m not sure where to ask this question, since I can’t seem to find any threads regarding this particular exercise on Python. I’ve been struggling to understand the second method of iterating through indexes-using range(len(list)) instead of the name of the list. I’m having a hard time understanding why this would yield similar results to the first method of just using the name of the list. Doesn’t the second method only take into consideration the number of elements rather than the content? Furthermore, how does it allow for the modification of the given list?
Thank you for your time!