A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 4 years ago

PS5,I swear this ran correctly but I have done something stupid(well,obviously just in what manner)while saving or cut/paste, I don't know and it is too much for me to figure out.Now when 'n' is entered to start game, it just reprompts to enter n,r, e.I was doing PS6 but cannot test without this running.Thank you http://codepad.org/lXcsSWjV

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

    lines 191 and 219 look funny

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

    I am staring at those lines and nearby. That is just commentary. Sorry, I am blind and stupid. I warned you. I would even take any working version of PS5 just to add the code for PS6.I don't think I could just edit the necessary functions and have someone be able to tell if it is correct, could I?

  3. maitre_kaio
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    The lines that bwCA talks about are not commentaries. Look again and you will see that you define the play_hand function two times.

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

    Codepad not working but thought those were comment lines on that link.But I see the double.That is from some cut/paste and I was wondering why I had to fix the formatting.For PS6 #1&2,I have this,can you tell me WHY line 31 is no good regarding use of '='?I want to understand,it will not run so I could see what happens.Thank you both very much or tell me if I should post this separately. http://dpaste.com/694121/

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

    = is an assignment operator == is a comparison operator http://docs.python.org/library/stdtypes.html#comparisons

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

    I am really bad and confused easily.Thanks.Fixed and added a few things,seems to run,correctly,with all features. http://dpaste.com/694420/ In line 51 why can that not be just else? I had it there and it would not print TIME EXCEEDED,basically not recognizing and going through. 'if' is just > and then I figured 'else' would imply anything when that condition not met.What am I not getting?In this case,we know I don't get way too much.

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

    else should work at line 51 - if you want those statements to execute for any condition other than what is in the if clause. . http://docs.python.org/reference/compound_stmts.html#else

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

    OK,I had else and it malfunctioned but maybe I changed another bit of the code, too.Will test it later.Looked at the rest of this Pset and have no clue.Cannot see how I will do that and the rest of the course on my own.The lectures are very easy to understand and the reading, too(even if I forget all the rules I read,I comprehend it when I do)but the coding problems seem way more complex. Not sure what to do but thank you very much for your help.

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