Core Language
Strings & Interpolation
Strings are indexable, interpolate any expression inside {}, and come with a solid built-in method set (see Standard Library).
New to coding?
Copy the examples exactly first. Run them. Then change one number or word and run them again. You are not expected to memorize the command lists.
1
Template strings
Any expression works inside {} — not just variable names.
Try this code
name = "world";
x = 7;
print "Hello, {name}!"; // Hello, world!
print "3 * x = {3 * x}"; // 3 * x = 21
print "upper: {upper(name)}"; // upper: WORLD2
Escaped braces
Double a brace to get a literal one instead of starting an interpolation.
Try this code
print "literal {{brace}}"; // literal {brace}3
Indexing
Strings are indexable like lists — single characters.
Try this code
s = "hello";
s[0] // "h"