A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
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!
anonymous
 5 years ago
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!

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You 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
 5 years ago
Best ResponseYou've already chosen the best response.0but aren't u supposed to create a code that asks two questions then reverses the answers all in one step?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Sure, but you can store two variables and then print them both. I don't think the aim of the exercise is to make a oneliner.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Like this: http://pastebin.com/1bChMqXJ

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ooooooooooh ok. i was trying to do the whole thing in one step. thanks
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.