anonymous
  • 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?
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Are you typing into the python shell? Like directly into the command line?
anonymous
  • 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
anonymous
  • 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.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Oh okay, thanks! What is the advantage of doing it that way? And, to my original question, is my answer correct?
anonymous
  • anonymous
A nice summary of IDLE: http://ai.uga.edu/mc/idle%5Cindex.html.
anonymous
  • 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.
anonymous
  • 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

Looking for something else?

Not the answer you are looking for? Search for more explanations.