returns to the while lineand then reenters the loop when it finds that 'catis still in the list it removes each instance of 'catuntil the value is no longer in the listat which point python exits the loop and prints the list again['dog''cat''dog''goldfish''cat''rabbit''cat'['dog''dog''goldfish''rabbit'filling dictionary with user input you can prompt for as much input as you need in each pass through while loop let' make polling program in which each pass through the loop prompts for the participant' name and response we'll store the data we gather in dictionarybecause we want to connect each response with particular usermountain_ poll py responses {set flag to indicate that polling is active polling_active true while polling_activeprompt for the person' name and response name input("\nwhat is your name"response input("which mountain would you like to climb someday" store the response in the dictionaryresponses[nameresponse find out if anyone else is going to take the poll repeat input("would you like to let another person respond(yesno"if repeat ='no'polling_active false polling is complete show the results print("\ --poll results ---" for nameresponse in responses items()print(name would like to climb response "the program first defines an empty dictionary (responsesand sets flag (polling_activeto indicate that polling is active as long as polling_active is truepython will run the code in the while loop within the loopthe user is prompted to enter their username and mountain they' like to climb that information is stored in the responses dictionary vand the user is asked whether or not to keep the poll running if they enter yesthe program enters the while loop again if they enter nothe polling_active flag is set to falsethe while loop stops runningand the final code block at displays the results of the poll