A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

wow i feel horrible i cant get past set 0 problem 1 can someone help me plz?

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

    what are you having trouble with, can you post the code you currently have?

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

    .... and did you read the Hint in the problemset?

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

    this is what i have done far and i did something really wrong

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

    >>> print raw_input('Enter first name') Enter first name >>> print raw_input('Enter last name') Enter last name

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

    the computer doesnt know where to store the values that you are asking for

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

    also raw_input kind of acts like a print... try doing the code without print and see what happens

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

    First of all, the problem asks you to write a program which asks for the LAST name first and the FIRST name second, then spits the name back at you in the right order. You need your program to rearrange the user input so that the first name comes before the last name. Once you figure out how to do this you'll realize what you are missing. BTW, you don't need to put print before raw_input.

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

    the last paragraph of the Hint in the problemset has a link to the variable/string entry of the Python wikibook - that might help you

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

    link to the variable/string entry in Python wikibook and link to the solutions to the example problems at the bottom. I found that most helpful in solving that problem

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

    my output scrolled off the screen i used the code below trythis = raw_input('hit the enter key') it waits for a carriage return

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

    You need to assign the value returned by the raw_input function to some variable, as in a = raw_input() You only pass a string of text to raw_input if you wish to create a prompt. When raw_input is called, it prints the prompt and then waits for a response from the user, that is whatever the user types before pressing enter ~ potentially nothing, returning an empty string. If we do stuff = raw_input('write here ->') the computer will print the prompt write here -> then wait for someone to enter something after the prompt. If you typed spam and eggs then pressed enter, the raw_input function returns the string 'spam and eggs' which in the above case is assigned to the variable named stuff. If you now do print stuff The computer will print the value of the variable stuff, in our case spam and eggs Hope that helps.

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

    @Koala2 Are you still stuck with that?

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