def is_positive (x):
if x>=0:
return x
num_list=[10, -20, 30, -40, 50, 68, 78, 80, -90, -100]
list=[ ]
list=list(filter(is_positive, num_list))
print("Positive Values list=",list)
To embed this project on your website, copy the following code and paste it into your website's HTML: