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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started