Skip to content

F. Drawing the ใ„ฑ Shape

To the final mission: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘ 60%


๐ŸŽฏ Learning Goals

By the end of this lesson, you'll be able to:

  • โ—‹ Can combine straight lines and rotations
  • โ—‹ Can draw the 'ใ„ฑ' shape
  • โ—‹ Understands that code order matters

โšก 30-Second Challenge

Run the code below to see the 'ใ„ฑ' shape!

Did it work? Let's learn more about it below!


Core Concepts

Analyzing the 'ใ„ฑ' shape

'ใ„ฑ' is made up of two lines:

Order Action Result
1๏ธโƒฃ Move forward Horizontal line
2๏ธโƒฃ Turn right 90 degrees Change direction
3๏ธโƒฃ Move forward Vertical line

Order matters!

Watch the order!

If you rotate first, you get a different shape!

  • Move โ†’ turn โ†’ move = ใ„ฑ shape โœ…
  • Rotate โ†’ move โ†’ move = ใ…ฃ shape โŒ

Try Visual Coding

๐ŸŽฏ Mission
โ—‹ Try drawing the 'ใ„ฑ' shape! (forward โ†’ right 90 degrees โ†’ forward)
# Add blocks and the Python code will show up here...
Add blocks and the flowchart will show up here...
100 90 90 100


Example Code

import turtle
t = turtle.Turtle()
t.shape("turtle")
t.forward(100)   # Horizontal line
t.right(90)      # Going downward
t.forward(100)   # Vertical line

What Happens

The 'ใ„ฑ' shape gets drawn!


Quiz

Quiz: the order for the 'ใ„ฑ' shape
Which order is correct to draw the 'ใ„ฑ' shape?
Show Answer

Answer: B) Move โ†’ turn โ†’ move

First draw the horizontal line, change direction, then draw the vertical line.


๐Ÿ”ง Debug Clinic

Problem: a different shape shows up instead of 'ใ„ฑ'!

โŒ Wrong order

t.right(90)      # If you turn first...
t.forward(100)   # Move down
t.forward(100)   # Keep going down (ใ…ฃ shape)
Cause: the rotation angle or direction is wrong

โœ… Correct order

t.forward(100)   # Go right first
t.right(90)      # Then turn
t.forward(100)   # Downward (ใ„ฑ Shape)
Fix: right(90)Use it, and check the order!


Try Coding It Yourself

Take what you learned with the blocks and write it yourself in Python code!

Drawing the ใ„ฑ Shape

forward()and right()Draw the 'ใ„ฑ' shape with it.

Example Answer
import turtle
t = turtle.Turtle()
t.shape('turtle')

t.forward(100)
t.right(90)
t.forward(100)

Result: The turtle draws the 'ใ„ฑ' shape!


ใ„ฑ Shape Practice

  • Order: move โ†’ Rotate โ†’ move
  • Rotation function: t.right(90)
  • Number of lines: 2(horizontal + vertical)

Review Checklist

  • [ ] You can describe the order for drawing the 'ใ„ฑ' shape (move โ†’ turn โ†’ move)
  • [ ] You know why you use right(90) for the 'ใ„ฑ' shape
  • [ ] You understand that changing the order of the code makes a different shape

๐Ÿงฉ Key Takeaways

What you learned in this lesson:

Concept Description
ใ„ฑ Shape Horizontal line + vertical line = 2 lines
Order Move โ†’ turn โ†’ move
Rotate right(90) Use