Favorite Foods

# Favorites.py
#
# I will collect favorite foods
#

favorites = {}

name = ''
while name != "end":
    name = input("Enter your name (or type 'end' to end): ")
    if name != "end":
        if name in favorites:
            print("You already told us your favorite food is", favorites[name])
        else:
            food = input("What is your favorite food? ")
            favorites[name] = food

print()
print("Here are all the favorite foods:")
for name in favorites:
    print(name, "likes", favorites[name])