I am lost with this simple topic, I am taking a intro to python course and this one topic keeps coming up and causing me to fail each individual building block. I struggle with math so please take that into consideration when reposnding.
My requirement is as follows:
create a variable to hold the x coordinate and give it a value|
create a variable to hold the y coordinate and give it a value|
create a variable that will hold the distance which is √(x2 + y 2)|
output all the values and variables calculated|
I have turned in the following:
distance=(x ** 2 + y ** 2)
print(“Disance is x to the 2nd power + y to the 2nd power”)
print(“Distance is”, distance)
print(“The value of x is”, x)
print(“The value of y is”, y)
At this point we have not learned anything about importing/importing match to be specific, everything I read online discusses importing but the instructor has not stated I am missing this nor have we learned how to import so I am under the impression that its possible without importing.
It was returned as incorrect, the response I got was as follows:
copy and paste
"This still incorrect
formula is squareroot(x(squared)+y(squared))
your distance is still incorrect"
I have been working this topic for 8 weeks now and cant seem to get ahead, any any clear, concise, and constructive guidance would be apricated but please be mindful that I am already confused so any un-necessary reworking of code will just continue to compound my confusion.