class Card:

    def __init__(self, action, id):
        self.action = action.lower()
        self.id = id.lower()
        self.image = self.action + ('' if self.id == '' else ' '
            ) + self.id + '.jpg'
        self.flipped = False

    def __str__(self):
        return self.action

0b1f4e0d1f7be6e77d1cc21b26951b4b18a5a921
<mask token>

class Card:
    <mask token>
    <mask token>

class Card:
    <mask token>

    def __str__(self):
        return self.action

class Card:

    def __init__(self, action, id):
        self.action = action.lower()
        self.id = id.lower()
        self.image = self.action + ('' if self.id == '' else ' '
            ) + self.id + '.jpg'
        self.flipped = False

    def __str__(self):
        return self.action
