Lesson goal: Make the computer speak with different speeds
Previous: Displaying text
| Next: Displaying nice looking math
In a previous lesson
,you learned how to display text on the screen.
Using the same idea, let's have the computer speak
We have a function called
that works like this:
say("your message here")
Move the mouse over a dotted box for more information.
Now you try. Use the
say statement and have the computer speak some messages. Be sure to put your message in double quotes.
Type your code here:
Does your code work? Want to run it on your iPhone?
Here's your code:
- Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
- Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
- Then click the "Use on iPhone" button that you'll see.