Each day, write Python programs that make the village come alive!
(Practice: String math, Turtle basics)
📜 Part 1: Draw the Gateway
- Use Turtle to draw a triangle with 3 equal sides
- After each side, turn left sharply (don’t use angles, just a command)
- Make the triangle gold
📜 Part 2: Solve the Riddle
- Create a password by:
- Writing the string
"5"
- Adding two copies of the string
"2"
(use multiplication)
- Writing the string
- Print the password
- Use an if-statement to check if the password is exactly 3 characters long
📜 Part 3: Swap the Guardian’s Eyes
- The triangle has:
stone_weight = 12
(number)stone_color = "blue"
(string)
- Swap their values without typing the numbers/words yourself
🛠️ Debug Challenge:
# The triangle won't say its age! Fix it:
print("I am " + 9 + " centuries old!")
(Practice: PEMDAS, Type conversion)
📜 Part 1: Build Walls
- Draw a square with Turtle using a loop
- Calculate the wall length using:
(3 * 4) // 2
📜 Part 2: Door Comparison
- Door 1 is labeled
"3"
(string) - Door 2 is labeled
3.0
(float) - Check if they’re equal using
==
after converting types
📜 Part 3: Magical Roof
- Create a roof description by:
- Calculating
5 + 2 * 3
- Turning the result into text
- Adding it to
"Roof strength: "
- Calculating
🛠️ Debug Challenge:
# The chimney smoke is broken!
print("Smoke" * 3.0)
(Practice: Input, Modulo, Swapping)
📜 Part 1: Petal Dance
- Ask the user: “How many petals?”
- If the number is even, make the Turtle spin left
- If odd, spin right
📜 Part 2: Growth Formula
- Calculate growth using:
"10" * 2
then subtract5
- Print whether it’s greater than 15
📜 Part 3: Pollen Swap
- Swap:
flower_height = "12.5"
(string)flower_age = 3
(integer)
- Convert types during the swap
🛠️ Debug Challenge:
# Why won't the flower sing?
print("Whisper: " + True)
(Practice: Boolean logic, Turtle angles)
📜 Part 1: Mirror Lines
- Draw 6 lines that each:
- Go forward 50 pixels
- Turn right by 60 degrees
- Go backward 50 pixels
📜 Part 2: Frost Check
- Check if these are both False:
bool("0")
bool(0)
📜 Part 3: Temperature Spell
- Convert:
mirror1 = "32"
→ integermirror2 = 0
→ string with "℃"
🛠️ Debug Challenge:
# The ice won't melt!
temperature = "32" + 5
(Practice: All concepts combined)
📜 Part 1: Village Architect
- Ask the user: “Build what?”
- If input contains “cottage”, draw a square
- If “flower”, draw a spiral
- Else, draw a star
📜 Part 2: Food Math
- Calculate:
("pizza" * 2 + " ") * 3
- Print how many “pizza” slices there are
📜 Part 3: Flag Rotation
- Rotate these three values:
flag_height = "10"
flag_color = 99
is_raised = True
🛠️ Debug Challenge:
# Fireworks won't launch!
print("Bang!" + True + 5*"!")