Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

minirafa

  • 3 years ago

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')

  • This Question is Closed
  1. Ferizv20
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  2. Rockyrocks
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    hey raw_input doesnt work na on python 3.2 ???

  3. Ferizv20
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i recommend you tu use python 2.7.1

  4. Ferizv20
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i recommend you tu use python 2.7.1

  5. libro
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if you're using python 3.2, simply replace raw_input with just input. It works the same.

  6. asheybo
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    why do we use int(raw_input()) instead of input() (which gives runtime error) and raw_input doesnt...

  7. silvlan
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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?

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

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.