I am trying to understand better the list comprehension:
I have the following code:
deck = []
for rank in ranks:
for suit in suits:
deck.append(('%s%s')%(rank, suit))
How can I transform in list comprehension? And is it more pythonic to have as list comprehension or not?