Find the language

Report a typo

We have a dictionary with countries and languages in that countries. Search the language received from the user input in the countries. Return a list of countries where the language is spoken. If you can't find the language, return No such country.

Sample Input 1:

English

Sample Output 1:

['Iceland', 'Monaco']

Sample Input 2:

Bulgarian

Sample Output 2:

No such country
Write a program in Python 3
# Do not change the dictionary, please
countries = {
"Andorra": {"Catalan", "French", "Portuguese"},
"Iceland": {"Icelandic", "English", "Scots"},
"Monaco": {"French", "Italian", "English"},
"Belgium": {"Dutch", "French", "German"},
}


def check_language(lang):
# Write code here


language = input()
# Print the result
___

Create a free account to access the full topic