Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- def center_point(x1, y1, x2, y2):
- first_point_sum = abs(x1) + abs(y1)
- second_point_sum = abs(x2) + abs(y2)
- if first_point_sum <= second_point_sum:
- print(f'({floor(x1)}, {floor(y1)})')
- else:
- print(f'({floor(x2)}, {floor(y2)})')
- center_point(x1=float(input()), y1=float(input()), x2=float(input()), y2=float(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement