A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

Ok everyone I just started here but finished first lecture and I was wandering is the the kind of code they are asking for for problem set zero.... a = raw_input ('Write your last name') b = raw_input ('Write your first name') print b+a The code works fine but is this what they wanted?

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

    Considering I only took five minutes on it I am sure I rushed and it is not what is actually being asked.

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

    Considering I only took five minutes on it I am sure I rushed and it is not what is actually being asked.

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

    Yep, that's pretty much what they wanted. You could go a little further if you wanted by having it print a space between first and last names. print b+' '+a

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

    Yep I figured that out. I spent more time thinking about how to add the space then figuring out how to write up the main code.

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

    You can just comma the print statement and get a free space print b, a But, with a space, your code is fine. It gets tougher by the way :)

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

    I figured it did. I am watching the second lecture and will do problem set 1 tomorrow.

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

    Mikeray, don't make the mistake I did - I started Problem Set 1 after watching Lesson 2. Problem Set 1 is due at Lesson 4, so you should watch Lesson 2 and 3 before starting it. I did Problem Set 1 after Lesson 2 and although I had the right concepts in mind (got it correct), Lesson 3 could've saved me quite a bit of time.

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

    Nevermind, my last two posts, I got my stuff mixed up. Problem Set 1 is due at Lesson 3...

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

    Yeah I noticed that and thanks I will follow the calender. I just hope I am able to keep up with everything being 31 with three brats and a nagging yet wanderfull wife makes finding time fun.

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