Question: Use python Write a function, getDeck(), to create a deck of cards and return a list denoting a deck of cards. A card deck has
Use python
Write a function, getDeck(), to create a deck of cards and return a list denoting a deck of cards. A card deck has 52 cards, 4 suits, and 13 values. Suits are Clubs (C), Diamonds (D), Heart (H), and Spades (S) respectively. Cards values in the following order: 2, 3, 4, 5, 6, 7, 8, 9, 10 (T), Jack (J), Queen (Q), King (K), Ace (A). Identify your cards with two characters; the first one is the value, and the second one is the suit (the characters are given within brackets above). For instance, 7 of Hearts, Ace of Diamonds, Jack of Spades, and 2 of Clubs are represented as 7H, AD, JS, and 2C respectively. Then write a function deal(deck,n) which takes two inputs, a deck of cards created using the function cards, developed above, and n (a positive integer with 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
