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

can someone help me with doing the very first assignment?

OpenStudy (mokeira):

what is the question

OpenStudy (anonymous):

Write a program that does the following in order: Asks the user to enter his/her date of birth. Asks the user to enter his/her last name. Prints out the user’s last name and date of birth, in that order.

OpenStudy (anonymous):

This is my first day/attempt at programming so I'm a complete newbie

OpenStudy (anonymous):

if you make each question a variable, i.e. x & y, it's very simple. What I did was: >>>x = raw_input('Enter your last name:') Enter your last name: Last name here >>> y = raw_input('Enter your date of birth:') Enter your date of birth: DOB here >>> [x,y] Should come up correctly

OpenStudy (anonymous):

Although when I try to run it it crashes so I must be doing something wrong but I got that far

OpenStudy (mokeira):

i can help you if you want to do it in java

OpenStudy (anonymous):

mxa instead of putting (x,y) I wrote "print x,y" and it worked just fine. Thanks for your help!

OpenStudy (anonymous):

Thanks Mokeira I'm sure I'll need more help I'll be on here often.

OpenStudy (mokeira):

ok...no problem

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!