Question: 3.In python write a program that asks the user for the number of players and the number of cards in each hand. Then, displays all

3.In python write a program that asks the user for the number of players and the number of cards in each hand. Then, displays all hands of cards from a deck of playing cards using the same format as described in Project 3. The program should use either "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", or "K" for the value of the card and either "c", "h", "s", or "d" for the suit. So, if the program randomly selects the jack of clubs, it should display Jc. Use one tuple to represent all of the possible card values and another tuple for the possible suits. The program should create the hand as a separate hand. For this program, it is permitted to repeat card values.

4. CHALLENGE: For problem #3, write the program to guarantee that no card is duplicated?

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!