anonymous
  • anonymous
i am working on python. I am trying to figure out how to input someone's name and birthdate, separately, and still get the two in the same inorder. can anyone read my code and tell me what is wrong with it? number = input("Enter your date of birth ") name = int(input("Enter your last name ") print('name' + 'number')
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.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
you have to do it like this number = int(raw_input("Enter your date of birth ")) name = raw_input("Enter your last name ") print name, number the comma is to print in the same line and without the ('') because its a variable, if you do it that way you will get namenumber instead.
anonymous
  • anonymous
hey raw_input doesnt work na on python 3.2 ???
anonymous
  • anonymous
i recommend you tu use python 2.7.1

Looking for something else?

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

More answers

anonymous
  • anonymous
i recommend you tu use python 2.7.1
anonymous
  • anonymous
if you're using python 3.2, simply replace raw_input with just input. It works the same.
anonymous
  • anonymous
why do we use int(raw_input()) instead of input() (which gives runtime error) and raw_input doesnt...
anonymous
  • anonymous
can anyone tell me how to get it downloaded? I am haveing issues! I am doing everything it says and I got it downloaded and then my computer error read not compatible. Why is this and what do I have to do to install after download?

Looking for something else?

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