Quiz Week 9

For this assignment these were the instructions:

Write a function that receives four parameters: x1, y1, x2, y2 which are all floating point values.

The function is called distance and returns (float) the distance between x1,y1 and x2,y2 on the cartesian coordinate plane.

Here is the code written on Atom:

Screen Shot 2017-05-04 at 9.18.48 AM

Here is the code running on Terminal, once again I’ve decided to run it twice and using different values just to test the results and have a better understanding.


SS Quiz W9


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s