can someone help me with doing the very first assignment?
what is the question
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.
This is my first day/attempt at programming so I'm a complete newbie
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
Although when I try to run it it crashes so I must be doing something wrong but I got that far
i can help you if you want to do it in java
mxa instead of putting (x,y) I wrote "print x,y" and it worked just fine. Thanks for your help!
Thanks Mokeira I'm sure I'll need more help I'll be on here often.
ok...no problem
Join our real-time social learning platform and learn together with your friends!