A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

lucifer

  • 4 years ago

hello OCWians. please, could someone tell me how to do pset0. This is my best attempt: print(raw_input('Enter your last name: ' ) , raw_input("Enter your first name: " ))

  • This Question is Closed
  1. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    firstName = raw_input('Enter your first name') lastName = raw_input('Enter your last name') print firstName, lastName

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

    that is not working.

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

    Don't see too much difference However, this works http://dpaste.com/hold/694125/

  4. maitre_kaio
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    lucifer, check your version of Python. I guess it's 3.x and 2.x is used in the course, and by most people here.

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

    python version = IDLE version = 2.7.2, Tk version = 8.5

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

    can't get yours to work den2042, I should not enter a command, then name, then command ... Rather, python should ask the questions consecutively, then print. The '\n' is a new thing for me though. I'll try to play around with it.

  7. maitre_kaio
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    lucifer, are you always typing your code in the IDLE shell ?

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

    yes, where then?

  9. maitre_kaio
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    dgo was doing the same thing, please check our advices to him

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

    command line?

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

    Ok, so must do it in a new window. heh. den2042's code does exactly what I want. How could I have known to open new window -- lectures, book, google? At any rate, maitre_kaio, humbly, I offer this medal tribute. lol

  12. maitre_kaio
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    2 people in 2 days: obviously your problem is not rare. Too bad we can't write a FAQ. But I'm glad to have been able to help you. Coding will be much less a pain for you now !

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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.