import numpy as np
print(round(np.sqrt((float(input("x2: "))-float(input("x1: ")))**2 + (float(input("y2: "))-float(input("y1: ")))**2), 4))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import numpy as np
print(round(np.sqrt((float(input("x2: "))-float(input("x1: ")))**2 + (float(input("y2: "))-float(input("y1: ")))**2), 4))