Index Ai Academy
Glossary · Phase 0 · Tools

String

Also written: strings

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.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write