A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

Ok, I feel dumb but I'm hung up on ps0 - I can do the raw_input and get it to show Enter your last name: etc, but I'm missing how to get it to actually print just the name (unless all you do is type print Smith for example). I'm sorry, what am I missing???

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

    x=raw_input('something') print x This will print whatever you previously input. Get it?

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

    Ok, so you assign variables to various parts of the string and put the variables together? Sorry, I haven't written code since DOS...

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

    >>> x=raw_input('Enter your last name:') Enter your last name:Vander Ark >>> print x Vander Ark >>> y=raw_input('Enter your first name:') Enter your first name:Shanda >>> print y Shanda Like that?

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

    And chat is not letting me enter anything all of a sudden, geez, technology!

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

    Sure, but you might want to do something like this instead: x=raw_input('firstname') y=raw_input('lastname') print x,y

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

    Ok, now it makes sense, thank you! Sorry, it's been way too long! :) I was getting there at least!

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

    No problem. Don't forget to create a python file, instead of just writing code in the shell.

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

    Ok, so here goes, hoping it's not too far off...

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

    Ok, let's try this again, think this one is better...

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

    Alright, take three, not giving up til I get it right!

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

    It's fine

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

    Thank you so much! :)

  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.