Skip to content

codeabode101/intro-turtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🌟 Weeklong Quest: Build the Talking Village

Each day, write Python programs that make the village come alive!


🗓️ Day 1: The Guardian Triangle’s Password

(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:
    1. Writing the string "5"
    2. Adding two copies of the string "2" (use multiplication)
  • 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!")  

🗓️ Day 2: The Cottage of Shifting Doors

(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:
    1. Calculating 5 + 2 * 3
    2. Turning the result into text
    3. Adding it to "Roof strength: "

🛠️ Debug Challenge:

# The chimney smoke is broken!  
print("Smoke" * 3.0)  

🗓️ Day 3: The Flower of Whispers

(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 subtract 5
  • 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)  

🗓️ Day 4: The Ice Mirror’s Illusion

(Practice: Boolean logic, Turtle angles)

📜 Part 1: Mirror Lines

  • Draw 6 lines that each:
    1. Go forward 50 pixels
    2. Turn right by 60 degrees
    3. 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"integer
    • mirror2 = 0string with "℃"

🛠️ Debug Challenge:

# The ice won't melt!  
temperature = "32" + 5  

🗓️ Day 5: The Grand Village Festival

(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:
    1. flag_height = "10"
    2. flag_color = 99
    3. is_raised = True

🛠️ Debug Challenge:

# Fireworks won't launch!  
print("Bang!" + True + 5*"!")  

Releases

No releases published

Packages

No packages published