Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Each file should be a python program, root file name of Lab 4 _ pcarswel - t , extended by . py

Each file should be a python program, root file name of "Lab4_pcarswel-t", extended by ".py". Insert your username for pcarswel and the number of the question you chose for $. The header of each file should be comments which tell the name of the program, your name [the author], relevant comments, and the date.
Deal Cards. Write a program that asks the user for the number of cards in a hand. Then, displays all the cards from a deck of playing cards using a list, "A","2","3","4","5","6","7","8","9","10","J","Q","K" for the value of the card and another list, "c","n","s","d" for the sulits. The program randomly selects from each list. As an example, if the selection is the jack of clubs, it sholldd display 'Jc'. Use one list to represent all of the possible card values and another list for the possible suits. Print out each card in the hand according to the input from the user. For this program, it is permitted to repeat card values.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions