Happy late New Year, and welcome back after winter break! :)
Example code: https://replit.com/@ShravyaS/IntroToPython-14
HOMEWORK / MINI-PROJECT:
Create a program that simulates a standard deck of cards without Jokers. There are 4 suits of cards (Clubs, Diamonds, Hearts, Spades), each with 13 cards: Jack, Queen, King, Ace, and the numbers 2 through 10. This makes for a total of 4*13 = 52 cards.
Your program should also keep track of one person's hand as well as a deck of cards, and the sum of the cards in the deck and that person's hand should of course be 52.
Allow the user to draw cards into the person's hand, shuffle the deck, print out the cards in deck or in hand, etc. through commands entered through input.
(Implement a draw function with a number of cards to draw, a shuffle function, printing for the hand/deck.)
Enhancement ideas: keep track of 4 (or more) players' hands, print out the cards as little ASCII drawings, implement a simple card game with these functions.
Write your answer as a comment, and feel free to email the TAs (Shravya and Eric) if you're stuck. See you next class!