For an assignment, I want to remove all undesirable items in a list. This is an example of code that should remove all 1's from a list; however, when I run it, it returns None. Why is this?
v=[1,2,1,3,1,4,5,55,1]
for i in v:
if i==1:
result=v.remove(1)
else:
continue
print (result)