title: Storing coordinates in a nested list using loop
body: <p>I am having the coordinates of a robot, I am taking the number of robots as
  input and storing the coordinates in a list called locations. I want locations to store the coordinates of all robots.  </p>
  
  <p>Using a  loop I am appending a empty list inside locations and I am storing the coordinates into the sub-list.</p>
  
  <pre><code>locations = []
  
  m = input("Number of robots: ")
  
  for i in range(m)
      locations.append([])
  
      x = x + 1
      y = y + 1
      z = z + 1
      locations[i].append(x)
      locations[i].append(y)
      locations[i].append(z) 
  print(locations)
  </code></pre>
  
  <p>I expect the result to be locations<code>[(1,1,1),(2,2,2)....]</code>, but I am not able to get the output.</p>