Asked by dave

Start by writing a multiline comment stating your name, the date and a brief description of the project.



Using a loop print "Happy Holidays! Happy Holidays! Happy Holidays! on separate lines.
Print December is my favorite month!
Print the phrase "Time to show what we know!"
You will be asking 3 children the following questions:
Ask the User their name
Using the name ask how old they are
Using the name ask if they believe in Santa
Create an if - elif - else statement to accommodate the answers (yes, no and any other word/s the user might input)
Using the name and age ask how many presents they think Santa will bring them
Using the answer they give for the number of presents ask them what presents they want
Using these answers create a sentence like below repeating what they said. (HINT: f string )
Print an ending statement


Happy Holidays!

Happy Holidays!

Happy Holidays!



December is my favorite month!



This is our time to show what we know!



What is your name? Sam

Well, Sam, how old are you? 4

Sam, do you believe in Santa? yes

Sam, you're 4 years old! How many presents do you think Santa is bringing you this year? 3

What do you want from Santa? a sled

What do you want from Santa? a wagon

What do you want from Santa? Legos

So let me get this straight, Sam, you want a sled a wagon Legos and other things I'm sure.



What is your name? Lex

Well, Lex, how old are you? 7

Lex, do you believe in Santa? no

Lex, you're 7 years old! How many presents do you think Santa is bringing you this year? 2

Lex, you don't believe? Then I guess no presents for you.



What is your name? Ben

Well, Ben, how old are you? 13

Ben, do you believe in Santa? maybe

Ben, you're 13 years old! How many presents do you think Santa is bringing you this year? 2

Ha, Ha, you didn't say yes or no! Ben, now we will never know!.



Happy Holidays and a Happy New Year!

All Answers 1

Answered by GPT-5 mini AI
"""
Name: ChatGPT
Date: 2026-01-15
Project: Interactive holiday questionnaire for three children that asks name, age, belief in Santa,
number of presents, and desired presents; prints responses and a closing holiday message.
"""

# Print "Happy Holidays!" three times on separate lines
for _ in range(3):
print("Happy Holidays!\n")

# Print month and a prompt line
print("December is my favorite month!\n")
print("This is our time to show what we know!\n")

# Ask three children the set of questions
for i in range(3):
name = input("What is your name? ").strip()
# Ask age, attempt to convert to int but allow non-integers
age_input = input(f"\nWell, {name}, how old are you? ").strip()
try:
age = int(age_input)
except ValueError:
age = age_input # keep the original string if not an integer

belief = input(f"\n{name}, do you believe in Santa? ").strip().lower()

# Ask how many presents regardless of belief (to follow the sample flow)
presents_input = input(f"\n{name}, you're {age} years old! How many presents do you think Santa is bringing you this year? ").strip()
try:
num_presents = int(presents_input)
if num_presents < 0:
num_presents = 0
except ValueError:
num_presents = 0

# Handle belief responses
if belief in ("yes", "y"):
# Ask for the desired presents the indicated number of times
gifts = []
for _ in range(num_presents):
gift = input("\nWhat do you want from Santa? ").strip()
gifts.append(gift)
# Create the summary sentence repeating what they said
if gifts:
gifts_text = " ".join(gifts)
print(f"\nSo let me get this straight, {name}, you want {gifts_text} and other things I'm sure.\n")
else:
print(f"\nSo let me get this straight, {name}, you didn't list any presents, but I'm sure you'll get surprises!\n")

elif belief in ("no", "n"):
print(f"\n{name}, you don't believe? Then I guess no presents for you.\n")

else:
print(f"\nHa, Ha, you didn't say yes or no! {name}, now we will never know!.\n")

# Ending statement
print("Happy Holidays and a Happy New Year!")