samedi 26 janvier 2019

Create a new list with if statement in Python [on hold]

I have a list

list1=[2,4,5,6,7,8,1,23,3,5,-1,3,2,-3,-5,1]

How can I create a new list that contains the numbers that are greater than 0?

Aucun commentaire:

Enregistrer un commentaire