Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ __init__
Method
__init__
BlackJack_game/blackjack_rr.py:61–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
59
60
class
Deck:
61
def
__init__(self):
62
self.deck = []
63
for
suit in suits:
64
for
rank in ranks:
65
self.deck.append(Card(suit, rank))
66
67
def
__str__(self):
68
deck_comp =
""
Callers
nothing calls this directly
Calls
2
Card
Class · 0.70
append
Method · 0.45
Tested by
no test coverage detected