Checking for a full house

Robert Kern rkern at ucsd.edu
Wed May 25 22:13:49 EDT 2005


Tony Meyer wrote:

> def isfullHouse(roll):
>     return len(set(roll)) != 2

[1, 1, 1, 1, 2] is not a full house.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list