# Functions

# Create a function

def sayHello(x='Rin'):
    print('Hello ', x)
    
sayHello('Uzuki')

#Return a value
def getSum(num1,num2):
    total = num1 + num2
    return total

numSum = getSum(1,2)
print(numSum)

def addOneToNum(num):
    num = num +1
    print('Value inside function ', num)
    return

num = 5
addOneToNum(num)
print('Value outside function: ', num)

def addOneToList(myList):
    myList.append('ichigo')
    print('Value inside function: ', myList)
    
myList = [1,2,3]
addOneToList(myList)
print('Value outside function: ', myList)