Q: How can I check if lists have the same number I have a list with lists. I need to check if the first number of one list is  the same as the first number in another list. The same with the second number.
[[0,0], [0,1], [0,2],
 [1,0], [1,1], [1,2],
 [2,0], [2,1], [2,2]]


A: It can be easily done with list comprehension:
[x[0] == x[1] for x in l]

