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

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: " ))

OpenStudy (anonymous):

Try this pseudo code: Ask the user for the first name - using print take in user input and assign it to a variable - firstname = raw_input() do the same thing but for the last name then print the first name and print the last name

OpenStudy (anonymous):

http://dpaste.com/hold/694125/

OpenStudy (anonymous):

Instead of asking the user to input their name using the print command let raw_input do it. eg lastName = raw_input('Enter your last name: ' )

OpenStudy (anonymous):

my code is as follows: n1 = raw_input('Enter Your Last Name') n2 = raw_input('Enter Your First Name') result = n2 + n1 print result

OpenStudy (lucifer):

OK, thank you. I'm doing pset01 now.

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!