We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def get_distance_between_points(first, second): (x1, y1) = first (x2, y2) = second
x_diff = x2 - x1 y_diff = y2 - y1 return math.sqrt(x_diff * x_diff + y_diff * y_diff) #wrong return math.sqrt((x_diff**2) + (y_diff**2)) #proper
The text was updated successfully, but these errors were encountered:
Without using math
x = x2 - x1 y = y2 - y1 return math.sqrt(x * x + y* y) #wrong return ( ( ( x**2 )**0.5 ) + ( y**2 )**0.5 )
Sorry, something went wrong.
Merge pull request dmh23#1 from snehilvj/z-factor-refactor
0cc049f
🔨 Move z factors to Framework
No branches or pull requests
def get_distance_between_points(first, second):
(x1, y1) = first
(x2, y2) = second
The text was updated successfully, but these errors were encountered: