Task
Write a program that simulates picking four cards randomly from a standard deck of 52 playing cards.
Specifications
- The program should randomly select four cards from the deck. Use a random seed argument so that your code can be tested.
- Use the function signature
kaartspel(seed)
- A standard deck of playing cards consists of four suits: hearts, diamonds, clubs, and spades. Each suit has cards numbered 2 through 10, along with the face cards (jack, queen, king) and the ace, for a total of 13 cards per suit.
- The program should print the randomly selected cards to the terminal in a human-readable format.
Example output
An example output is given below:
Card number 44 is 6 of Clubs
Card number 12 is King of Spades
Card number 13 is Ace of Hearts
Card number 5 is 6 of Spades
Tips
- make use of the built-in library
random
- you can set the seed with the following line
random.seed(seed)
. You must do this before using any function of the random library
- to shuffle a list, you can use the function
random.shuffle(list)