Lesson goal: The length of a string
| Next: Comparing strings
Often when working with strings, one needs to know how long a string is. This can be found
Move the mouse over a dotted box for more information.
Now you try. Put different strings in between the double quotes of
a= line and run the code.
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.