print(name title()the line at tells python to pull all the keys from the dictionary favorite_languages and store them one at time in the variable name the output shows the names of everyone who took the polljen sarah phil edward looping through the keys is actually the default behavior when looping through dictionaryso this code would have exactly the same output if you wrote for name in favorite_languagesrather than for name in favorite_languages keys()you can choose to use the keys(method explicitly if it makes your code easier to reador you can omit it if you wish you can access the value associated with any key you care about inside the loop by using the current key let' print message to couple of friends about the languages they chose we'll loop through the names in the dictionary as we did previouslybut when the name matches one of our friendswe'll display message about their favorite languagefavorite_languages 'jen''python''sarah'' ''edward''ruby''phil''python' friends ['phil''sarah'for name in favorite_languages keys()print(name title() if name in friendsprint(hi name title(" see your favorite language is favorite_languages[nametitle("!"at we make list of friends that we want to print message to inside the loopwe print each person' name then at we check to see whether the name we are working with is in the list friends if it iswe print special greetingincluding reference to their language choice to access dictionaries