Re: More Pythonic implementation

2014-08-19 Thread Ben Finney
Shubham Tomar writes: > Lets say I have a function poker(hands) that takes a list of hands and > returns the highest ranking hand, and another function hand_rank(hand) > that takes hand and return its rank. To make it clearer, I think you mean something like this:: def hand_rank(hand):

Re: More Pythonic implementation

2014-08-19 Thread Chris Kaynor
On Tue, Aug 19, 2014 at 10:09 AM, Shubham Tomar wrote: > Lets say I have a function poker(hands) that takes a list of hands and > returns the highest ranking hand, and another function hand_rank(hand) that > takes hand and return its rank. As in Poker > http://www.pokerstars.com/poker/games/rules