Question: In Python please ! Write a function create_deck () that creates and returns a list of 52 Card objects in the order specified below. The
In Python please ! 



Write a function create_deck () that creates and returns a list of 52 Card objects in the order specified below. The function takes no arguments. A Card has a rank in the range 0 through 12 and a suite in the range (0 through 3. A card showing a 2 is represented by ID #0, 3 is represented by ID #1, , 10 is represented by ID #8; and the Jack, Queen, King and Ace are represented by 9, 10, 11 and 12, respectively: Rank Number Assigned 0 4 4 10 Q100 12 Suits are assigned ID numbers as follows: Suit CLUBS SPADES DIAMONDS 2 HEARTS3 Number Assigned 0 For example, a Card that represents the Queen of Clubs will have 0 for its .suit attribute and 10 for its rank attribute. The create-deck () constructs and returns a list of 52 Card objects. The cards are returned in the following order: all of the Clubs in the order 2 through Ace, followed by all of the Spades in the order 2 through Ace, followed by
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
