subject

Take the below three lists and create a two dimensional list for the deck. Each card name from dCardnames will be applied to each suit from dSuits and have the corresponding value from dCardValues. dCardNames = ['2','3','4','5','6','7','8','9','1 0','J','Q','K','A']
dCardValues = ['2','3','4','5','6','7','8','9','1 0','11','12','13','14']
dSuits = ["♠","♥","♦","♣"]
Using list comprehension , create a list to serve as an index for the cards The list would be from 0 to 51.
This list will serve as the pointer to the two dimensional list (rows) for each individual card.
Shuffle this list using your own written shuffle routine.
Using the index list as the deck, deal two hands of five cards to player1 and Player2
create a list for each hand
store only the index for that card (pulled from the index list).
Display the corresponding card from the two dimensional list using the pointer from the list index.
Take this Deck of cards and write the deck to a file.
It should create a csv file with a card per row with the name, value and suit in each row (example below):

2 Spades 2
3 Spades 3
4 Spades 4
5 Spades 5
6 Spades 6
7 Spades 7
8 Spades 8
9 Spades 9
10 Spades 10
J Spades 11
Q Spades 12
K Spades 13
A Spades 14
2 Hearts 2
3 Hearts 3

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
How to unblock on chrome book? ?
Answers: 1
You know the right answer?
Take the below three lists and create a two dimensional list for the deck. Each card name from dCard...
Questions
question
English, 10.09.2019 04:10
Questions on the website: 13722367