
Keegan Swanson
1,339 Pointsi need help
I really need help this ain't working
my_list = []
for val in range(10):
print(my_list.append(val))

Chris Freeman
Treehouse Moderator 62,868 PointsThe print
surrounding the append statement is not needed.
2 Answers

Steven Parker
205,345 PointsIt passes the challenge for me just as it is, even with the spurious "print" statement. But as Chris mentioned, the "print" isn't needed here.

Chris Freeman
Treehouse Moderator 62,868 PointsI would add that the print
outputs nothing but a blank line since the list.append
method returns None
.

Dawlat Abdul
4,606 PointsYou are trying both to append the value and print it that's why aint working.
try this:
my_list = [] for val in range(10): my_list.append(val) print(my_list[val])
Chris Freeman
Treehouse Moderator 62,868 PointsChris Freeman
Treehouse Moderator 62,868 PointsThe code above passes the challenge. What error are you seeing?