Closed Shreeyak closed 7 years ago
Also, the version of python being used is not mentioned anywhere.
Actually, you can do this program without using the math library. 2**2 is interpreted as 2 squared.
what about the sqrt? Calculating the distance would require the square root of the sums.
The third function, calcDist requires the use of sqrt() which requires the import of math. Please add the import to the program or mention to students to import libraries as required.