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]
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]