Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pX = int(input("x pre-coord: "))
- pY = int(input("y pre-coord: "))
- refLoc = input("x/y refLoc: ")
- if refLoc == "x":
- refCoord = int(input("refCoord: "))
- if refCoord == pY:
- x = pX
- y = pY
- elif pY > refCoord:
- y = pY - (pY * 2)
- x = pX
- elif pY < refCoord:
- y = pY + (pY * 2)
- x = pX
- elif refloc == "y":
- refCoord = int(input("refCoord: "))
- if refCoord == pX:
- x = pX
- y = pY
- elif pX > refCoord:
- y = pY
- x = pX - (pX * 2)
- elif pX < refCoord:
- y = pY
- x = pX + (pX * 2)
- print("")
- input("(" + str(x) + "," + str(y) + ")")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement