Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. pointsNumber = input("Please enter the number of points you want: ")
  2.  
  3. coordinates = [[0 for x in range(3)] for y in range(pointsNumber)]
  4. print(coordinates)
  5.  
  6. for i in range(pointsNumber):
  7.     for item in list(zip(range(3), 'XYZ')):
  8.         coordinates[i][item[0]] = input("Enter point " + str(i) + " coordinate " + str(item[1]) + ": ")
  9.  
  10. # print coordinates just to verify
  11. print(coordinates)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement