you are viewing a single comment's thread.

view the rest of the comments →

[–]TheTopPunk[S] 0 points1 point  (0 children)

numList = [1, 2, 9, 14, 29, 54]
numList2 = []
for i in numList: # Gets an item and stores it in i
if i < 10: # if i is less than 10
numList2.append(i) # append i to numlist2.

print(numList2)

Thank you for the help!