Starting with a list of tuples which represent points on a surface.
list = [(48, 228), (96, 204), (120, 192), ... ]
What is the pythonic way to create a new list, so we can call values from the original list, as if they were distributed on a grid?
Like this:
>>>print grid[0][0]
(48, 228)
>>>print grid[0][1]
(96, 204)
This is a list comprehension that solves it:
Explained:
Test: