I have just started this course and on problem set 0 it keeps printing out the same line twice. "print raw_input('What is your last name? ')" then it asks it again before going to the next line. Please help :(
This is code: print 'What is your last name? ' x = raw_input ('What is your last name? ') print ' What is your date of birth? ' y = raw_input (' What is your date of birth? ') print 'Name: ' +x, 'Born: ' +y Here is what happens when I run module: What is your last name? What is your last name? Michel What is your date of birth? What is your date of birth? June 3rd Name: Michel Born: June 3rd
What language is this?
python
When using input you can also give a directive. Remove the sentence from input to correct this or remove the print statement.
Thank you very much. I understand what happened now.
I did the same thing... Had both print and raw_input statements, when you don't need the print statements at all...
Join our real-time social learning platform and learn together with your friends!