Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

Write a function called deal() which takes three arguments; a deck of cards, the number of cards to deal, and the number of players. deal() returns a tuple where the first element of the tuple is a list and the second element of the tuple is the list of cards which have not been dealt. The first part of the tuple gives a list of lists, where each list represents the hand of each player. It shows the cards that have been dealt to each player. in python

OpenStudy (anonymous):

That's a pretty good function spec. there are probably some usefull methods in the random module in the standard library you want to post your solution?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!