[Tutor] I need advice about which way to go.

Bob Gailer bgailer at sbcglobal.net
Wed Aug 3 20:28:20 CEST 2005


At 11:12 AM 8/3/2005, Nathan Pinno wrote:
>Sorry about that, I thought it was clear that n = number randomly chosen. I
>was thinking of if the number was a five, it would choose a card with a five
>on it. I don't want to have to code stuff that I have to repeat again and
>again.

That's what classes, loops and functions are for.

>I'm not worrying about card types, I have that figured out separately.
>The two games are indeed separate, too much trouble to do them a 1 program
>that can play both games.
>Maybe I should have shown my code and asked using the code as a visual
>reference.

Good idea. How about now?

Bob Gailer
phone 510 978 4454  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050803/2e71237d/attachment.htm


More information about the Tutor mailing list