-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
ebp012 edited this page Sep 24, 2024
·
1 revision
Aspen is a typeless language, so there are no variable types until they are called.
Variables are defined using using the $ operator. For example:
$a = 1;
defines a variable a to be equal to 1.
When calling variables, the $ operator is ommitted:
print(a);
which will result in:
1
as the output.
- Output
- Input
- Variables
- Loops and Conditionals
- Mathematics
- Quadratics
- Cubics
- Complex Numbers
- Trigonometry
- Miscellaneous