anonymous
  • anonymous
this is embarrassing but i can't figure out problem set 0. i can get the computer to ask both questions and have the user input the data, but i can't figure out to store the input data in order to recall and reverse it. HELP!
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!
anonymous
  • anonymous
You do realize that when you enter something like: a = raw_input("Your question here: ") the variable a contains the user input. To print the data, simply use: print a
anonymous
  • anonymous
but aren't u supposed to create a code that asks two questions then reverses the answers all in one step?
anonymous
  • anonymous
Sure, but you can store two variables and then print them both. I don't think the aim of the exercise is to make a one-liner.

Looking for something else?

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

More answers

anonymous
  • anonymous
Like this: http://pastebin.com/1bChMqXJ
anonymous
  • anonymous
ooooooooooh ok. i was trying to do the whole thing in one step. thanks
anonymous
  • anonymous
No problem.

Looking for something else?

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