Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 11 Online
OpenStudy (anonymous):

I need help with the first assignment. For exercise 1.4 it asks to use IDLE to calculate √7 + 9 × 2, my question is how do I enter a square root?

OpenStudy (rsmith6559):

Here's two ways: >>> import math >>> math.sqrt( 4 ) 2.0 >>> 4**.5 2.0 If the first doesn't make sense, use the second.

OpenStudy (anonymous):

import math print math.sqrt(7)+9*2

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!
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!