>>> one = 1
>>> two = 2
>>> three = one + two
>>> hello = "hello"
>>> world = "world"
>>> helloworld = hello + " " + world
>>> three
3
>>> helloworld
'hello world'
Tip: Assigning a value to a variable when it has not been referenced before will also instantiate it. You do not need to define the variable first.
See also Creating an array and a dictionary and printing values |