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

I am having a problem with problem set 0... When I enter my name. I get the error "ValueError: could not convert string to float: mi"

OpenStudy (anonymous):

Welp, im dumb. It was because I wrote x=float at the beginning

OpenStudy (anonymous):

You cannot... Is it c++??

OpenStudy (anonymous):

I can write a function how to do the conversion in float values

OpenStudy (anonymous):

I figured it out. I was using python. I wrote x=float ('raw_input(Enter your name here): '). When I shouldve wrote x='raw_input(Enter your name here: ')

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!