Double for

Report a typo

Which of the following list comprehension will do the same as the code below?

country_list = [["Moscow", "Cheboksary", "Sochi"], ["Paris", "Lyon", "Nice"],
                ["New York", "Dallas", "San Francisco"]]

long_cities = []
for country in country_list:
    for city in country:
        if len(city) >= 6:
            long_cities.append(city)
Select one option from the list
___

Create a free account to access the full topic