Solution: Separate Positive and Negative Numbers from a List

Learn how to create two lists from a list that contains positive and negative numbers.

We'll cover the following

The solution to the problem of creating two lists from a list that contains positive and negative numbers using list comprehension is given below.

Solution

Get hands-on with 1400+ tech skills courses.