Reading Code:

Distance between the Pyret and the boot:

num-sqrt​(​num-sqr​(​line-length​(​9, -3​)​) + num-sqr​(​line-length​(​3, -2​)​)​)

An x-y coordinate plane is shown with a right triangle connecting a pyret at (-3,-2) and a boot at (9,3)

1 Where do the 9 and -3 come from?

2 Where to the 3 and -2 come from?

3 Explain how the code works.

Writing Code

An x-y coordinate plane is shown with a right triangle connecting a pyret at (0,1) and a boot at (8,7)

Now write the code to find the distance between this boot and pyret.

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.