It is a simple code, what I am looking for is to learn the best practices that I can implement, when trying to refactor the show method, to a method that is closed to modifications. so that in the future if they ask me to enter a new card with a value of type chain, it is not necessary to modify this method.
class Card:
def __init__(self, suit, value):
self.suit = suit
self.value = value
def show(self):
if self.value == 1:
value = "Ace"
elif self.value == 11:
value = "Jack"
elif self.value == 12:
value = "Queen"
elif self.value == 13:
value = "King"
else:
value = self.value
return f'{value} of {self.suit}'