How can we help?
Syntax
Indentation
Indentation refers to the spaces at the beginning of a code line. Where in other programming languages the indentation in code is for readability only, the indentation in Geko is very important, just like Python. Geko uses indentation to indicate a block of code.
Python is used for nearly 99% of Geko.
|
1 2 |
if 5 > 2: print(“Five is greater than two!”) |
Variables
In Geko, a variable is created when you assign a value to it, just like Python:
|
1 2 3 4 |
x = 5 y = “Hello, World!” y = True x = array() |
Comments
Geko has commenting capability for the purpose of in-code documentation. Comments start with a #, and Geko will render the rest of the line as a comment:
|
1 2 |
#This is a comment. print(“Hello, World!”) |
