Skip to content

3. Variables

OJddJO edited this page Nov 8, 2024 · 10 revisions

Note

Variables are used to store data. They are assigned a value which can be changed later, it can be a number, some text or expressions. Variables can be of different types such as int, float, str, bool, list.

Expression Description
int var assign a Assign a to a new integer variable var
int var assign a plus b Assign a + b to a new integer variable var
float var assign a Assign a to a float new variable var
str var assign "Hello World" Assign Hello World to a new string variable var
bool var assign true Assign true to a new boolean variable var
change var to a Change the value of an already existing variable var to a
delete var Delete the variable var

-> Next: Constructed Types
Return to main page