Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

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)
See more answers at brainly.com
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.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
nvm, figured it out :O
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.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question