Modify the solution in homework problem #1 to use a function chain to shuffle the deck after creating each card. Shuffling produces a random series of cards in the deck. Note that each playing card in the deck must be unique (the combination of a face value and a suite cannot be repeated).
Problem 1
A deck of cards consists of 52 playing cards, 1 for each of the 13 face values (2–10, Jack, Queen, King, and Ace) and each of the 4 suites (Hearts, Clubs, Spades, and Diamonds). Write a single loop that uses a function to create a deck of playing cards
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here