Dec-17-2020, 08:00 PM
Am I partially correct when I say, there is no need for more than 2 nested loops wen you have list comprehensions? Here is another problem in the book, I solved with the same format.
world_cup_winners = [[2006, "Italy"], [2010, "Spain"], [2014, "Germany"], [2018, "France"]] my_tuple = [item for item in world_cup_winners] for item in my_tuple: print(*item, sep=' ')
Output:2006 Italy
2010 Spain
2014 Germany
2018 France