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

is the right answer to pset 0? i wish the solutions were posted somewhere... >>> x = raw_input('Enter your last name:') Enter your last name:Smith >>> y = raw_input('Enter your first name:') Enter your first name:John >>> print (x,y) ('Smith', 'John') Although it seems like they might be asking for all of the questions and user inputs to be done in the same program, not in separate pieces the way I did. I'm not sure how to do that?

OpenStudy (anonymous):

Are you typing into the python shell? Like directly into the command line?

OpenStudy (anonymous):

I'm using IDLE, but the window says Python Shell. So I'm not sure. Here's a screenshot of my screen: http://img143.imageshack.us/img143/6388/screenshot20110221at444.png

OpenStudy (anonymous):

You're in the shell. In IDLE, Go to File - New Window. A new window will open, and you can type your program directly in there, with all the cool color codes, etc. Then save your program with the .py extension. After saving your work, you can run your program by pressing f5. From the Python Shell, you can also open recent docs, so if you save more than one program, you can always re-open another window via FILE - RECENT FILES.

OpenStudy (anonymous):

Oh okay, thanks! What is the advantage of doing it that way? And, to my original question, is my answer correct?

OpenStudy (anonymous):

A nice summary of IDLE: http://ai.uga.edu/mc/idle%5Cindex.html.

OpenStudy (anonymous):

As for your code, the assignment indicates for you to print out the users first and last names in that order...so you will have to change your print statement to reflect that correctly.

OpenStudy (anonymous):

To add to what Aslander said, read the first chapter of this. It's linked on the Readings section of the website. http://www.greenteapress.com/thinkpython/thinkCSpy/thinkCSpy.pdf

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!