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

#find the cub root aperfect cub x = int(input('Enter an integer: ')) ans = 0 while ans*ans*ans < abs(x): ans = ans + 1 #print 'current guess =', ans if ans*ans*ans != abs(x): print (x),( 'is not a perfect cube') else: if x < 0: ans = -ans print ('Cube root of') + str(x) + ('is') + str(ans) this cood is run but I'm write this number didn't run Enter an integer: 1957816251 Cube root of Traceback (most recent call last): File "C:/Python34/mm.py", line 12, in print ('Cube root of') + str(x) + ('is') + str(ans) TypeError: unsupported

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!