anonymous
  • anonymous
Hey everyone, I'm on the first homework problem and I have a question. The code I have looks like this... x = raw_input('What is your date of birth? ') y = raw_input('What is your last name? ') print (y + x) Everything goes but when it prints there are no spaces between the two pieces of input data. In other words it winds up looking like this. Smith4/24/1985 I'm missing something really simple to get the space in there, I just don't know what it is. Can anyone point me in the right direction?
MIT 6.00 Intro Computer Science (OCW)
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.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions.

anonymous
  • anonymous
Hey everyone, I'm on the first homework problem and I have a question. The code I have looks like this... x = raw_input('What is your date of birth? ') y = raw_input('What is your last name? ') print (y + x) Everything goes but when it prints there are no spaces between the two pieces of input data. In other words it winds up looking like this. Smith4/24/1985 I'm missing something really simple to get the space in there, I just don't know what it is. Can anyone point me in the right direction?
MIT 6.00 Intro Computer Science (OCW)
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
nvm, figured it out :O
anonymous
  • anonymous
print y,"(a space)",x the print statement prints only what you ask it to, nothing more nothing less. A space is treated as a string (like all the letters in the alphabet) so it's like expecting the computer to print the value of y without mentioning y in your print statement.

Looking for something else?

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

More answers

Looking for something else?

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