Python Python Sequences Sequence Iteration Iterating over Ranges

MAMADOU BAH
MAMADOU BAH
2,522 Points

Range

Can some help figure this out I tried multiple codes nothing have worked?

iterating_ranges.py
my_list = ['i']
for i in range (0,10,1):
        print (my_list)

1 Answer

1) You should leave the my_list declaration as provided by the challenge

2) Within the loop you are to append the current value using syntax my_list.append(val). So in the case of your code this would be my_list.append(i)