Advertisement
informaticage

Destra e sinistra asse Y

Feb 9th, 2021
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. destra = []
  2. sinistra = []
  3.  
  4. n = int(input("Numero punti: "))
  5.  
  6. for i in range(0, n):
  7.   x = input("X: ")
  8.   y = input("Y: ")
  9.  
  10.   if(int(y) >= 0):
  11.     destra.append("(" + x + ", " + y + ")")
  12.   else:
  13.     sinistra.append("(" + x + ", " + y + ")")
  14.  
  15. print("Destra: ")
  16. print(destra)
  17. print("Sinistra: ")
  18. print(sinistra)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement