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

PS9:#3 I'm a bit confused by the output from classes. for example, if I write x = Circle(5), and then I ask for x.area, I get a msg > 1) what's going on? 2) how do I get say a float value from the ?

OpenStudy (anonymous):

what video lession does this correspond with?

OpenStudy (anonymous):

PS9 is due after lecture 16, before lecture 17

OpenStudy (anonymous):

ok lest me skim through the lession and see if i can help

OpenStudy (anonymous):

figured it out

OpenStudy (anonymous):

ok well sorry i wasnt much of any help haha

OpenStudy (anonymous):

nope, that doesn't work

OpenStudy (anonymous):

ok game on

OpenStudy (anonymous):

is that the only part of the code you have written? if not can i see the rest of the code?

OpenStudy (anonymous):

Now I really did figure it out. It was just syntax. I need to write it as x.area() not x.area

OpenStudy (anonymous):

ah a commen mistake, glad you figured it out good luck :)

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!