✅ Ready but ⚠️ experimental
Comments are crucial to programming languages, they are useful as reminders, notes, or tips, so we went with the best and easiest to use comment system we could.
Single line comments start with
// and end at the end of the line, if you want comments to be multi-line, then just end it with
\\, but be sure to keep the first line empty. The begining is the same for both single and multi-line comments.
Example – String, number, list:
a = "hello" // A string
b = 0 // A number
c = 1.2 // Another number!
l = [a, b, c, "I love lists!"] // A list of items
There are many other types of data too, so make sure to check out the Type section of these docs.
Input and Output
Input and Output are crucial to making a program interactive and fun, without them most programs are useless! Here we will talk about the most basic form of input and output, the console. Outputing to the console is very simple, just use the
function, it works like
in Python and
The input function is also usefull, it works very similarly to the
function in Python.
name = input("What is your name?")
Using only these you can make some simple yet fun projects.
Example – Print my name:
name = input("Hello, what is your name? ")
output("Hi,", name, "!")
In the example above, if I run the code and input
when it asks for my name, then it will output
Hi, Hudson !