Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

In 6.00 problem set 0, I can't view the final output. This is my code: lname = raw_input('Enter your last name: ') fname = raw_input('Enter your first name: ') print fname print lname. I'm looking for something like getch() in C++. Also, is there a newline character that I can use to print my first and last name on 2 separate lines? (Like '\n' in java/c++/)

OpenStudy (anonymous):

Oh, there's no '.' in the code. I added that by mistake while typing out the question!

OpenStudy (osanseviero):

Is this about the MIT course?

OpenStudy (anonymous):

Yes

OpenStudy (osanseviero):

There is a study group just for that course http://openstudy.com/groups/mit+6.0+intro+computer+science+%28ocw%29 :) there is a better place for this

OpenStudy (anonymous):

Thank you!

OpenStudy (anonymous):

@aq147852 , type your code in a new window again , it will run. it did work for me. here: lname = raw_input('enter your last name: ') fname = raw_input('enter your first name: ') print fname print lname it worked fine.. if there is any more problem do post it.

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!