Editor · Ctrl+Enter to run
Ready
Output
Run your program to see output here.
Language Reference

Variables

let x be value. x be value. let x be get input "Prompt: ". let x be true. let x be nothing.

Output

print x. say "message".

Arithmetic

x + y   x - y x * y   x / y x % y   x ^ y (a + b) * c   BEDMAS sqrt of x root n of x

Strings

x joined with y length of x x as number x as text

Conditions

x is y   x == y x is not y   x != y x > y   x >= y x < y   x <= y x contains y a and b   a or b   not a

If / Otherwise

if condition:     body otherwise if condition:     body otherwise:     body end if.

Loops

while cond:     body end while. repeat n times:     body end repeat. for each item in list:     body end for. stop.  # break loop

Lists

let x be 1,2,3. add val to list. remove last from list. remove first from list. list at 0

Functions

define name with a and b:     give back a plus b. end define. call name with x and y. let r be call name with x.

Random

random number from min to max

Dictionaries

let d be "k"=v,"k2"=v2. d at "key" d at "key" be val.