Your first few lines.
A starting point for learning Kindly. More documentation is on the way.
Open the editorStart with a hello
Declare a variable with var and use print to send a value to the console. Copy this example into the editor and select Run.
var message = "Hello, Kindly!"
print(message)Change an existing value with assignment, such as message = "Hello again!". Declaring the same name twice in one scope is an error.
Take it one step at a time
Use while to repeat work, and if, elif, and else to choose what happens next. Indentation groups statements into a block.
var count = 0
while count < 3:
print(count)
count = count + 1Put a name to it
Define a function with def and return a value with return. Parameters can have default values.
def greet(name = "world"):
return "Hello, " + name + "!"
print(greet())
print(greet("friend"))