🎭 Day 2 Demo: Story Generator

Learn Python variables by creating your own personalized story!

📝 Create Your Story Character

Fill in these details and watch Python create a unique story just for you!

🌟 Your Personalized Story

📊 Variable Facts

🐍 Python Code Behind the Magic

# Here's how we use variables in Python:
name = "Alex"  # String variable
color = "purple"  # String variable  
animal = "dragon"  # String variable
age = 25  # Integer variable
lucky_number = 7.0  # Float variable
loves_adventure = True  # Boolean variable
has_magic = True  # Boolean variable

# Calculate using variables
future_age = age + 10
magic_level = lucky_number * 2

# Create the story with f-strings
story = f"Once upon a time, there was {name}..."
print(story)