Vzhledem k tomu, seznam čísel, napsat seznam porozumění, který vytváří seznam pouze kladná čísla v tomto seznamu. Např.: - vstup = [-2, -1, 0, 1, 2] Výstup = [1,2]
Given a list of numbers, write a list comprehension that
produces a list of only the positive numbers in that
list.
Eg:- input = [-2, -1, 0, 1, 2]
Output = [1,2]