anonymous
  • anonymous
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)
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.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
rsmith6559
  • rsmith6559
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
anonymous
  • anonymous
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')

Looking for something else?

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