Având în vedere o listă de numere, scrie o înțelegere listă care produce o listă de numai numerele pozitive din această listă. De exemplu: - intrare = [-2, -1, 0, 1, 2] Ieșire = [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]