Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 24 Online
OpenStudy (anonymous):

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

OpenStudy (anonymous):

lines 191 and 219 look funny

OpenStudy (anonymous):

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?

OpenStudy (maitre_kaio):

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

OpenStudy (anonymous):

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/

OpenStudy (anonymous):

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

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

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

OpenStudy (anonymous):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!