anonymous
  • anonymous
Ok, I'm probably missing something obvious here... but in problem set zero, I can't get a space when printing two raw_input() answers... I've tried multiple ways, but apparently not the right one...
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!
e.mccormick
  • e.mccormick
Not sure what you are trying to ask about. You can do code snippets betweeb ``` marks (one set above and one set below, on a line alone) and it does a code block: ``` IDLE 2.6.5 >>> a = raw_input("What to print?") What to print?This is a test. >>> print a This is a test. >>> ```
e.mccormick
  • e.mccormick
I mean a code block hjere so we can see your code properly.
anonymous
  • anonymous
Basically trying to do this: print("What is your first name") answer1 = raw_input() >> Hank print("what is your last name") answer2 = raw_input() >>Azaria print("Your name is " + answer1 + answer2) >> Your name is HankAzaria I can't get a space between the two variables when printing...

Looking for something else?

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

More answers

e.mccormick
  • e.mccormick
+ specifically does not do spaces. If you want a space, use comma or + " " +
anonymous
  • anonymous
Perfect! Thank you. I've been hung up on that for way too long. I tried using the comma, but it would always print the statement with apostrophes on both sides. I am completely new to this.

Looking for something else?

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