Codele / Programming basics
Working with text
Text is a row of letters, each in its own numbered slot. Learn to count them, pick one out and join pieces together.
- Text is a row of letters. Programmers call it a string.
- The length is how many letters there are.
- Each letter has a position, counted from the left, and the first position is 0.
- The last letter is at position length minus 1.
- A plus sign between two strings joins them. Spaces count as letters too.
Loading the playable lesson…