diff --git a/01-data-model/frenchdeck.py b/01-data-model/frenchdeck.py index 47a0d05..c68b439 100644 --- a/01-data-model/frenchdeck.py +++ b/01-data-model/frenchdeck.py @@ -3,7 +3,7 @@ Card = collections.namedtuple('Card', ['rank', 'suit']) class FrenchDeck: - ranks = [str(n) for n in range(2, 11)] + list('JQKA') + ranks = list(range(2, 11)) + list('JQKA') suits = 'spades diamonds clubs hearts'.split() def __init__(self):