notebook.community
Edit and run
In [11]: ls = [1,2,3,4,-5]
ls = [1,2,3,4,-5]
In [13]: [1 for x in ls if x>0]
[1 for x in ls if x>0]
Out[13]: [1, 1, 1, 1]
[1, 1, 1, 1]