title: Use Python to create 2D coordinate
body: <p>I am truly a novice in Python. Now, I am doing a project which involves creating a list of 2D coordinates. The coordinates should be uniformly placed, using a square grid (10*10), like(0,0)(0,1)(0,2)(0,3)...(0,10)(1,0)(1,2)(1,3)...(2,0)(2,1)(2,2)...(10,10).</p>
  
  <p>Here is my code:</p>
  
  <pre><code>coordinate = []
  x = 0
  y = 0
  while y &lt; 10:
      while x &lt; 10:
          coordinate.append((x,y))
          x += 1
      coordinate.append((x,y))
      y += 1
  print(coordinate)
  </code></pre>
  
  <p>But I can only get: [(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0), (10, 0), (10, 1), (10, 2), (10, 3), (10, 4), (10, 5), (10, 6), (10, 7), (10, 8), (10, 9)]</p>
  
  <p>How can I rewrite my code to get all the points?</p>