Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 Online
OpenStudy (anonymous):

Why does this code for x in range(200,401): y = int(round(math.sqrt(1000 - (x - 200)** 2) + 200)) gives this error? ValueError: math domain error

OpenStudy (harsha19111999):

I think because you have used 2 multiplication symbols at once. That is **

OpenStudy (harsha19111999):

Try removing one of the multiplication symbol and compile your code

OpenStudy (anonymous):

Thank you. I already found the problem

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
8 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
11 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!