Line Length

Write a program that randomly determines two Cartesian coordinates within a 20 x 20 grid and determines the length of the line between them.

Make your output look like this. Note the single decimal on the output.

The coordinates are (16,9) and (13,0).
The line is 9.5 units long.

Note

In Python, the following code will create and print a random number between 1 and 20:

import random
num = random.randint(1,20)
print (num)
Comments