+ 1
Poker Hand. So, I can't understand what's wrong with My code. Only Test 6 is unsuccessfull.
2 Réponses
+ 6
Komilov Khayrullokhon
Error: line 8 with 'Royal Flush' state
for input "10H JH AH KH QH", suite code in line four RETURNS ["0","H","H","H","H"]
WHEN EVER you convert suits list to set the length will be two and expression in if statement returns FALSE.
[BUG]: Just there is a small bug in suits (line 4) the rest of the code is alive.
[Solution]: instead of extracting second indexe of a card try to extract the last index.
[Code ]:
suits = [card[len(card)-1] for card in hand]
+ 3
Thank you, very much:)