print("the following languages have been mentioned:" for language in set(favorite_languages values())print(language title()when you wrap set(around list that contains duplicate itemspython identifies the unique items in the list and builds set from those items at we use set(to pull out the unique languages in favorite_languages values(the result is nonrepetitive list of languages that have been mentioned by people taking the pollthe following languages have been mentionedpython ruby as you continue learning about pythonyou'll often find built-in feature of the language that helps you do exactly what you want with your data try it yourse lf - glossary now that you know how to loop through dictionaryclean up the code from exercise - (page by replacing your series of print statements with loop that runs through the dictionary' keys and values when you're sure that your loop worksadd five more python terms to your glossary when you run your program againthese new words and meanings should automatically be included in the output - riversmake dictionary containing three major rivers and the country each river runs through one key-value pair might be 'nile''egyptuse loop to print sentence about each riversuch as the nile runs through egypt use loop to print the name of each river included in the dictionary use loop to print the name of each country included in the dictionary - pollinguse the code in favorite_languages py (page make list of people who should take the favorite languages poll include some names that are already in the dictionary and some that are not loop through the list of people who should take the poll if they have already taken the pollprint message thanking them for responding if they have not yet taken the pollprint message inviting them to take the poll