# Assign point_dist with the distance between point (x1, y1) and point (x2, y2). The calculation is: Distance = SquareRootOf((x2 - x1)**2

1 answer

###### Question:

Assign point_dist with the distance between point (x1, y1) and point (x2, y2). The calculation is: Distance = SquareRootOf((x2 - x1)**2 + (y2 + y1)**2).

## Answers

import math def calculateDistance(x1,y1,x2,y2): dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) return dist distance = calculateDistance(2,4,6,8) print distance

#### Similar Solved Works

4 answers

### P(-7,1) T(x, y) = (x + 9. y-3)P' = (2, [?])Enter the number that belongs inthe green box.

P(-7,1) T(x, y) = (x + 9. y-3) P' = (2, [?]) Enter the number that belongs in the green box. [tex]P(-7,1) T(x,y) = (x + 9. y-3) P' = (2, [?]) Enter the number that belongs in the green box.[/tex]...

4 answers

### When the body begins to lose body fluid at a rapid pace, this is called?SweatingFluid BalanceDehydrationRehearsal

When the body begins to lose body fluid at a rapid pace, this is called? Sweating Fluid Balance Dehydration Rehearsal...

9 answers

### Can a frequency table have intervals of 0-5, 5-10,and 10-15

Can a frequency table have intervals of 0-5, 5-10,and 10-15...

4 answers

### In triangle ABC, the length of side AB is 14 inches and the length of side BC is 21 inches Which of

In triangle ABC, the length of side AB is 14 inches and the length of side BC is 21 inches Which of the following could be the length of side AC...

6 answers

### Describe how the movement of water landforms form

Describe how the movement of water landforms form...

4 answers

### In the diagram shown, altitude AC is drawn from a right angle to BD in such a way that BC:DC= 4:1. Find

In the diagram shown, altitude AC is drawn from a right angle to BD in such a way that BC:DC= 4:1. Find the length of DC algebraically. Show your work below....

4 answers

### If you had 90 grams of NH3 and 100g of water at 10 degrees Celsius what would the solution be saturated, unsaturated, or

If you had 90 grams of NH3 and 100g of water at 10 degrees Celsius what would the solution be saturated, unsaturated, or supersaturated?...

3 answers

### What were the primary ethnic components of the Austro Hungarian Empire?

What were the primary ethnic components of the Austro Hungarian Empire?...

3 answers

### How did the united states and britain settle their dispute over oregon?

How did the united states and britain settle their dispute over oregon?...

10 answers

### Will give box plots show the basketball scores for two teams

Will give box plots show the basketball scores for two teams [tex]Will give box plots show the basketball scores for two teams[/tex]...

2 answers

### Which of the following is NOT a type of niche news? International Sports Entertainment Business

Which of the following is NOT a type of niche news? International Sports Entertainment Business...

10 answers

### What is the the smaller of the solutions? x^2-7x+3=0

What is the the smaller of the solutions? x^2-7x+3=0...

10 answers

### Like it i spent 15 days on it

Like it i spent 15 days on it [tex]Like it i spent 15 days on it[/tex]...

4 answers

### Select the correct answer.States have more lenient sentencing guidelines than the federal government.OA.TrueB.False

Select the correct answer. States have more lenient sentencing guidelines than the federal government. OA. True B. False...

3 answers

### Which of the following statements best characterizes the O‘NET view of how greening is changing the United Stateseconomy?1.

Which of the following statements best characterizes the O‘NET view of how greening is changing the United States economy? 1. The demands of a greening economy will affect different occupations in different ways. 2. Everyone's jobs will be different as green technology changes everything. 3. A gr...

4 answers

### Sanjay the owner of e-commerce buys set of dishes for $42 and the. Sells them on his site for $59 what percent is the mark up

Sanjay the owner of e-commerce buys set of dishes for $42 and the. Sells them on his site for $59 what percent is the mark up...

3 answers

### The northern elephant seal was almost hunted to extinction in the 1800s. By the late 1890s, approximately one hundred seals were left, reducingthe types

The northern elephant seal was almost hunted to extinction in the 1800s. By the late 1890s, approximately one hundred seals were left, reducing the types of seals found in the population. What will be the consequence of this reduction? A. Competition within the population will increase. B. Inbreedi...