Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
themeEclipse
languagepython
linenumberstrue
text = "Hello World"

...

Code Block
themeEclipse
languagepython
linenumberstrue
scene.message("Hello World")

 

Now have take a look at this example:

Code Block
themeEclipse
languagepython
linenumberstrue
a = "Mauritius"
b = "Pineapple"
c = 1200
d = 3.99

...

Code Block
themeEclipse
languagepython
linenumberstrue
origin      = "Mauritius"
fruit       = "Pineapple"
weight_in_g = 1200
price       = 3.99