Travel guide

Report a typo

Here's a piece of a program that tells you when it is best to visit a particular city:

city = "..."
summer = "Barcelona, Rome, Istanbul, Lisbon, Paris"
winter = "Oslo, Helsinki, Sydney, Cape Town, Vienna"

if (city in summer) or (city in winter):
    if city in summer:
        print("You should visit it in the summer!")
    else:
        print("You should visit it in the winter!")
else:
    print("I don't know what the best season is :(")

Match the value of city with the program's response.

Match the items from left and right columns
Lisbon
London
Oslo
You should visit it in the summer!
I don't know what the best season is :(
You should visit it in the winter!
___

Create a free account to access the full topic