Challenge: Read the Line Segments
Test your understanding of list comprehension and tuples with these coding questions.
We'll cover the following...
We'll cover the following...
Problem 1
You are given a list of points represented as tuples (x, y)
.
Your task is to filter out and return only those points that lie in the 2nd quadrant. Diagram to understand quadrants better is attached below.
Example input:
points = [(2, 3), (-1, 5), (-3, -2), (-4, 0)]
Expected output:
...