Ask your own question, for FREE!
Computer Science 20 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!
Latest Questions
Breathless: Spooky witch but cute
3 hours ago 3 Replies 0 Medals
Arriyanalol: help
3 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 3 Medals
Jaded012023: Please tell me what you all think of this song
6 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
6 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
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!