input
returns a string, and 0 != "0"
Either parse your strings immediately
parx = int(input("Write your parX: "))
pary = int(input("Write your parY: "))
Or check against strings
while pary != "0" and parx != "0":
Note too that you should be using some error checking. If the user enters a non-number, your program will crash.
solved I’m not getting the else output