1. Modify the Deck class to keep track of the current size ofthe deck using
an instance variable. Does this change the run-time efficiencyof the size
operation? Do a bit of research to answer this question.
2. Look into the functions provided by the Python random module tosimplify
the shuffling code in the Deck class.
3. Suppose we want to be able to place cards back into a deck.Modify the Deck
class to include the operations addTop, addBottom, and addRandom(the last
one inserts the card at a random location in the deck).
# Deck.pyfrom random import randrangefrom Card import Card class Deck(object): #————————————————————
PayPal Gateway not configured
PayPal Gateway not configured