A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • one year ago

Hello everyone! I've just joined the course and don't feel confident about the assignment 0. Could you please check the script I came up with? >>> question = 'Enter your date of birth' >>> print(question) Enter your date of birth >>> date = raw_input() Enter your date of birth >>> question2 = 'enter your last name' >>> print(question2) enter your last name >>> name = raw_input() print(name,date)

  • This Question is Open
  1. rsmith6559
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    This is a copy and paste of the Python shell. Use a plain-text editor ( IDLE, Notepad, TextWrangler, TextEdit can do it be careful, vi) to put all the steps into a file. raw_input() can take a string to print as an argument, and it will return what the user enters as a string: foo = ( "Enter a value for foo: " ) print foo

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if you put the question inside the raw_input() brackets, the interpreter will prompt you that question! try it like this: date = raw_input('Enter your date of birth')

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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...


  • 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.