<div class="gmail_quote">On Sat, Jul 25, 2009 at 7:15 PM, Darth Kaboda <span dir="ltr">&lt;<a href="mailto:darthkaboda@msn.com">darthkaboda@msn.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>
I&#39;m starting to learn Python as it seems to be adopted by many companies that I&#39;ve been looking to apply to. I used the book Learning Phython to get the basics of the language and many of the gotcha&#39;s. I think I know enough of the basic features of the language to start playing around and can understand most code I&#39;ve seen so far by looking at some of the posts here.<br>


 <br>
The one worry I have is not coding things the Phython way as I&#39;ve been a Visual Basic programmer for so long and a C++ programmer before that. So would like to have people look at a simplistic class (shuffles lists of objects wrote it for shuffling cards but with Phython could be used for any &quot;list&quot; type object) I wrote to give me some feedback on the style of it.<br>


 <br>
Any feedback is appreciated.</div></blockquote><div><br>There&#39;s a spot in your code that could be turned into a function. I&#39;m not sure what you&#39;d call it, but where you &quot;lay down&quot; 1-4 cards. Since you&#39;re doing the same thing for each stack, you may as well turn it into a function and just call it for each stack.<br>

<br>Pretty cool idea for something to do, though.<br><br>-Wayne <br></div></div>