Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 504 Bytes

20200619Homework.md

File metadata and controls

10 lines (9 loc) · 504 Bytes

2020-06-19 Python Level2 Homework

  • implement next in Deck class to handle dealing card, so we can use
c1 = next(deck1)

to get a card from the deck object.

  • modify the nextCard() function, so that whenever the card reach to the 0, it will shuffle the cards, and start from topIndex=51 again. In this case, the game can be continue forever without run out of card.
  • modify range1.py, make it possible have step variable
  • create another rangef.py to support float number range function.