Home Coding Variables

Variables

0
Variables

# Variables

foo = "foo"
bar = foo
foo = "bar"
OUT = (foo, bar)

####################################################################
# Variables are like labels to that you can assign values.
# Values you can assign to a variable are every "type" supported.
# We will see Types later.
# 
# RULES
#
# Variables can contain only letters, numbers, and underscores
# You can start a variable with underscore "_" or letters, NO numbers
# NO spaces on a variable and NO special charters
# 
# You assign the value "foo" at the variables foo, and then you
# assign the content of the variable foo at the variable bar.
# Then you overwrite the variable foo with "bar."
# The variable bar will not be affected by that.
#  
####################################################################