Python notes
Booleans are case sensative, therefore true is not True
var = True
var = False
number = 2**3
number == 8
# This is a comment line!
"""
This is
a comment
Block
"""
def functionName(int)
sum = int + 2
return sum
functionName(int)
All function arguments are passed by reference. It means if you change what a parameter refers to within a function, the change also reflects back in the calling function.
Mandatory arguments that have to be passed to the function.
def functionName(int)
sum = int + 2
return sum
def functionName(name, value)
sum = int + 2
return sum
functionName(value = 24, name = 'tralala')
Non mandatory arguments that default to a specified value.
def functionName(int = 1)
sum = int + 2
return sum