Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ __str__
Method
__str__
BlackJack_game/blackjack_rr.py:67–70 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
65
self.deck.append(Card(suit, rank))
66
67
def
__str__(self):
68
deck_comp =
""
69
for
card in self.deck:
70
deck_comp +=
"\n "
+ card.__str__()
71
72
def
shuffle(self):
73
random.shuffle(self.deck)
Callers
nothing calls this directly
Calls
1
__str__
Method · 0.45
Tested by
no test coverage detected