Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

zafirk

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?

  • 3 years ago
  • 3 years ago

  • This Question is Closed
  1. Aslander
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • 3 years ago
  2. zafirk
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 3 years ago
  3. Aslander
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 3 years ago
  4. zafirk
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • 3 years ago
  5. Aslander
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • 3 years ago
  6. Aslander
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 3 years ago
  7. Keen
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 3 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.