Index Ai Academy
Glossary · Phase 0 · Tools

F-string

Also written: f-strings

A string with an f in front that can slot values in, like f"Hi {name}".

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