Verify Full House in Poker

Create a Python function to determine if a poker hand qualifies as a "full house."

In the card game of poker, a "full house" consists of a hand that holds three cards of one rank and two cards of another rank, exemplified as ['A', 'A', 'A', 'K', 'K']. Your task is to create a Python function, `is_full_house()`, accepting a list of five poker card ranks as input. The function should return `True` if the combination forms a "full house", and `False` otherwise. ### Parameters - `cards` (list): A list of 5 string elements representing the ranks of the poker cards (e.g., 'A', 'K', 'Q', 'J', '10'... through to '2'). ### Return Value - Boolean: Return `True` if the provided list constitutes a 'full house', else return `False`. ### Examples ```python # 'AAA' + 'KK' forms a full house is_full_house(["A", "A", "A", "K", "K"]) # returns True # 'JJJ' + '22' forms a full house is_full_house(["J", "J", "J", "2", "2"]) # returns True # '10' appearing four times, does not form a full house is_full_house(["10", "J", "10", "10", "10"]) # returns False # There are no three cards of the same rank, hence does not form a full house is_full_house(["7", "J", "3", "4", "2"]) # returns False ```