9 lines
176 B
Python
9 lines
176 B
Python
class card:
|
|
def __init__(self, suit, value):
|
|
self.suit = suit
|
|
self.value = value
|
|
|
|
def __str__(self):
|
|
return f"{self.value} of {self.suit}"
|
|
|