before we explore the different approaches to loopinglet' consider new dictionary designed to store information about user on website the following dictionary would store one person' usernamefirst nameand last nameuser_ 'username''efermi''first''enrico''last''fermi'you can access any single piece of information about user_ based on what you've already learned in this but what if you wanted to see everything stored in this user' dictionaryto do soyou could loop through the dictionary using for loopuser py user_ 'username''efermi''first''enrico''last''fermi' for keyvalue in user_ items() print("\nkeykeyw print("valuevalueas shown at uto write for loop for dictionaryyou create names for the two variables that will hold the key and value in each key-value pair you can choose any names you want for these two variables this code would work just as well if you had used abbreviations for the variable nameslike thisfor kv in user_ items(the second half of the for statement at includes the name of the dictionary followed by the method items()which returns list of key-value pairs the for loop then stores each of these pairs in the two variables provided in the preceding examplewe use the variables to print each key vfollowed by the associated value the "\nin the first print statement ensures that blank line is inserted before each key-value pair in the outputkeylast valuefermi keyfirst valueenrico keyusername valueefermi dictionaries