Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_full_house(list_of_cards):
- reslist = []
- if len(set(list_of_cards)) > 2:
- return False
- else:
- for el in set(list_of_cards):
- reslist.append(list_of_cards.count(el))
- if reslist == [3,2] or reslist == [2,3]:
- return True
- else:
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement