Glossary · Phase 0 · Tools
String
A piece of text in a program, written inside quotes, such as "hello".
Try it now
The stop position is never included, which is why code[0:8] gives exactly 8 characters. Try negative positions too.
Learn it properly
Strings and f-strings · Work with text: join it, slice it, clean it, and format it. About 25 minutes.
Other terms from the same lesson
- f-string: A string with an f in front that can slot values in, like f"Hi {name}".
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.