lucifer
  • lucifer
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: " ))
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
firstName = raw_input('Enter your first name') lastName = raw_input('Enter your last name') print firstName, lastName
lucifer
  • lucifer
that is not working.
1 Attachment
anonymous
  • anonymous
Don't see too much difference However, this works http://dpaste.com/hold/694125/

Looking for something else?

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

More answers

maitre_kaio
  • maitre_kaio
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.
lucifer
  • lucifer
python version = IDLE version = 2.7.2, Tk version = 8.5
lucifer
  • lucifer
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.
maitre_kaio
  • maitre_kaio
lucifer, are you always typing your code in the IDLE shell ?
lucifer
  • lucifer
yes, where then?
maitre_kaio
  • maitre_kaio
dgo was doing the same thing, please check our advices to him
lucifer
  • lucifer
command line?
lucifer
  • lucifer
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
maitre_kaio
  • maitre_kaio
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 !

Looking for something else?

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