Mar-19-2020, 01:39 PM
How do I add elements from a list to another list that are more than a specific number?
I've tried this:
list1=[2, 5, 3]
list2=[]
if number in list1 > 3:
list2.append(number)
Why does this not work, and how can I change it?
I've tried this:
list1=[2, 5, 3]
list2=[]
if number in list1 > 3:
list2.append(number)
Why does this not work, and how can I change it?