A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 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!

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but aren't u supposed to create a code that asks two questions then reverses the answers all in one step?

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Like this: http://pastebin.com/1bChMqXJ

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ooooooooooh ok. i was trying to do the whole thing in one step. thanks

  6. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    No problem.

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.