0

I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- my code does not work. Could you help?

```
(x,y)=(0,0)
lst = []
answer = True
for x in range (50):
lst=lst+[(x,y)]
if (x>=49):
(x,y)=(0,y+1)
answer = True
print lst
```