Question: need help with this python assignment Part V: Poker Hands (5 points) Write the function poker-hand that takes a list of exactly five Card objects
need help with this python assignment
Part V: Poker Hands (5 points) Write the function poker-hand that takes a list of exactly five Card objects as an argument, analyzes the list, and returns one of the following strings that describes the hand: straight' (five cards when rearranged will form a run of five consecutive cards) Four of a kind' (four or five cards of the same rank) 'Three of a kind' (exactly three cards of the same rank) One pair (at least one pair of the same rank, but not four cards of the same rank) High card' (no cards of identical rank that also do not form a straight The string High card' is returned when no pair, triple orquadruple is found in the list of cards. The returned string may be capitalized any way you wish, but no characters (including spaces) may otherwise be added or changed. Homework #3 CSE 101 Spring 2017 Page 4 If two pairs are present in the hand, the function should simply return 'one pair If a pair of one rank and a three-of-a-kind of another rank are present in the hand, the function should simply return Three of a kind The Card class that you will find in homework3.py is the same class we studied in lecture. Use it to complete this part of the assignment. You may add additional instance variables or methods to the class if you wantStep by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
