Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_parallelogram(dot_x_arr, dot_y_arr):
- return (dot_y_arr[0] == dot_y_arr[3]) and (dot_y_arr[1] == dot_y_arr[2]) and (abs(dot_x_arr[0] - dot_x_arr[1]) == abs(dot_x_arr[2] - dot_x_arr[3]))
- dot_x_arr = [int(i) for i in input().split()]
- dot_y_arr = [int(i) for i in input().split()]
- print(is_parallelogram(dot_x_arr, dot_y_arr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement