...
If you take a closer look at the “Hello World” example, you can see that the “text” object is highlighted in red. This object is also called a variable. A variable is a placeholder and this special case is called a scalar. A scalar can only store one value. Please have take a look at this line again:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
text = "Hello World" |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
scene.message("Hello World") |
Now have take a look at this example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
a = "Mauritius" b = "Pineapple" c = 1200 d = 3.99 |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
origin = "Mauritius" fruit = "Pineapple" weight_in_g = 1200 price = 3.99 |