Question: Write a python program that simulates dealing a card from a deck of playing cards. More specifically, ask the user how many cards they want.

 Write a python program that simulates dealing a card from a

Write a python program that simulates dealing a card from a deck of playing cards. More specifically, ask the user how many cards they want. Then display the value of the cards as shown in the example below. You can assume you have an infinite stack of cards, so duplicates can occur. There are four possible suits: hearts, diamonds, clubs, and spades. There are 13 possible card values: ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King. Turn your assignment into Moodle. Example: How many cards should I deal? >6 The card is: 7 of diamonds The card is: Jack of hearts The card is: 5 of clubs The card is: Queen of spades The card is: 6 of spades The card is: 4 of hearts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!