Python Python Sequences Sequence Iteration Iterating over Ranges

I am failing to realize what this question really wants me to do. First if i am to append, which value am i to add

The variable my_list is empty, am i to fill it ?
my_list = []
for i in range(10):

2 Answers

It wants you to append the current value of i to my_list as you iterate.


Thanks man. I get it now

The instructions state: The body of the for loop should append the current value to the provided list. In your case this would be i.

I got that part as shown in my code.. What about the list i am to append, do i have to fill it up or that int(10) is the list