Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def is_full_house(list_of_cards):
  2.     reslist = []
  3.     if len(set(list_of_cards)) > 2:
  4.         return False
  5.     else:
  6.         for el in set(list_of_cards):
  7.             reslist.append(list_of_cards.count(el))
  8.         if reslist == [3,2] or reslist == [2,3]:
  9.             return True
  10.         else:
  11.             return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement