This is a game Sonia made for Christmas
def play_christmas():
gifts = {}
mumber_of_gifts = input("Santa says: How many people are in your family?")
for x in range(int(mumber_of_gifts)):
name = input("What is your name?")
gift = input("What do you want Santa(me) to bring for?")
gifts[name] = gift
for name, gift in gifts.items():
print("Santa is going to bring ",gift, " for ", name)
play_christmas()
def play_christmas():
gifts = {}
mumber_of_gifts = input("Santa says: How many people are in your family?")
for x in range(int(mumber_of_gifts)):
name = input("What is your name?")
gift = input("What do you want Santa(me) to bring for?")
gifts[name] = gift
for name, gift in gifts.items():
print("Santa is going to bring ",gift, " for ", name)
play_christmas()
No comments:
Post a Comment