Make the Turtle Talk
The turtle can talk. Put your words inside speech marks and a little bubble pops up beside it. You can even make it wait before it speaks again.
π‘ The idea
A program can show words, not only lines.
- say "Hello" puts your words in a bubble.
- The words must sit inside speech marks.
- wait 10 pauses for one second. wait 20 pauses for two.
- You can say something, draw, and then say something else.
- Words in a program are called text.
π Words to know
- say
- show words in a bubble
- text
- words in a program
- wait
- pause for a little while
π Watch this
The turtle greets you, waits two seconds, then draws a square.
say "Hello, I am Star the turtle." wait 20 say "Watch this." repeat 4 [ forward 60 right 90 ]
βοΈ Your turn
- Run it and read the bubble.
- Change the words to your own hello.
- Change wait 20 to wait 40 and see the longer pause.
- Add say "Bye!" at the very end.
π― Challenge: Make the turtle greet you by your own name, then draw a triangle.
Show me one answer
say "Hello Meera, let us draw." repeat 3 [ forward 80 right 120 ] say "Done!"
Your program