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
Description: A simple interactive Python program that prints holiday messages and asks three children
their name, age, belief in Santa, how many presents they expect, and what they want.
"""

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

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

# Ask 3 children
for _ in range(3):
name = input("What is your name? ").strip()
# Ask age using the name in the prompt
age = input(f"Well, {name}, how old are you? ").strip()

# Ask belief in Santa
belief = input(f"{name}, do you believe in Santa? ").strip()

# Ask how many presents (asked regardless of belief in samples)
num_presents_input = input(f"{name}, you're {age} years old! How many presents do you think Santa is bringing you this year? ").strip()
try:
num_presents = int(num_presents_input)
if num_presents < 0:
num_presents = 0
except ValueError:
# If not a valid integer, treat as 0
num_presents = 0

# Normalize belief for branching
belief_normal = belief.strip().lower()

# Branch for yes, no, or other answers
yes_answers = {"yes", "y", "yeah", "yep", "sure", "ya"}
no_answers = {"no", "n", "nope"}

if belief_normal in yes_answers:
presents = []
# Ask for each present if the child expects > 0 presents
for i in range(num_presents):
item = input("What do you want from Santa? ").strip()
presents.append(item)
# Create a sentence repeating what they said
if presents:
items_str = " ".join(presents)
print(f"So let me get this straight, {name}, you want {items_str} and other things I'm sure.\n")
else:
print(f"So let me get this straight, {name}, you don't expect any presents, but I hope you get a surprise!\n")

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

else:
print(f"Ha, 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!")