educative.io

"for i in range..."

def multiply_by_10(myList):
for i in range(len(myList)):
num_list[i] *= 10

This type of code (“for i in range” and "num_list [i] " bolded )has not been introduced until this point

Hi Desiree,

You’re right, “for i in range” has not been explained yet so apologies for that. It has been replaced.

The concept behind num_list[i] was explained in the Grouping Values lesson. Basically, we’re just accessing an element in a list using the [] brackets.

Thanks for pointing these things out :slight_smile:

1 Like