Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numero_punti = int(input("Numero punti: "))
- primo = []
- secondo = []
- terzo = []
- quarto = []
- for punto in range(numero_punti):
- x = int(input("x: "))
- y = int(input("y: "))
- if(y >= 0 and x >= 0):
- primo.append((x,y))
- if(y >= 0 and x < 0):
- secondo.append((x,y))
- if(y < 0 and x < 0):
- terzo.append((x,y))
- if(y < 0 and x >= 0):
- quarto.append((x,y))
- print("Primo ", primo)
- print("Secondo ", secondo)
- print("Terzo ", terzo)
- print("Quarto ", quarto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement