I am trying to do the first problem of name and birthdate. I am having trouble with printing the responses. Is anyone working on this?
Hey, Beth. What's the problem you're having?
So this is what I did: I gave a name to the stuff that I wanted to get from the user - for date of birth, I just called it "DoB". I then said: DoB = raw_input("Please enter your date of birth >..."") What this does is prints a prompt using the words in quotations, and waits for the user to enter the info and hit return. It's printed it out using: print "You entered your date of birth as: ", DoB. Same idea for last name, amended to suit.
oops; just noticed that I closed the raw_input string with two lots of quotation marks; that's just my fat thumbs; sorry! Just open and close with one lot of quotes :)
the joy of minor synax errors. While a human can take in " or "" with about the same utility, a computer will scream at you over such a minor issue. =)
Join our real-time social learning platform and learn together with your friends!