Skip to content
Examples
Hello World

Hello World

The print builtin function is equivalent to fmt.Println in Go:

print("Hello world!")
Output:
Hello world!

It can of course print any number of arguments:

print("sum:", 2+2, "product:", 2*2)
Output:
sum: 4 product: 4

printf is also available and it wraps fmt.Printf in Go:

printf("name: %s, age: %d\n", "Alice", 30)
Output:
name: Alice, age: 30