Python Python Sequences Sequence Iteration Iterating over Ranges

why isn't it working

my_list = [] for val in range(10): print(my_list.append(val))

iterating_ranges.py
my_list = [] for val in range(10): print(my_list.append(val))

1 Answer

I copy/pasted your code and it passed (provided it's not all on one line and indented properly). But for the challenge you weren't asked to print anything. Try removing the print function. my_list.append() returns None so that's all you would see anyways.