"""
Learning Goals:
 - Read and write code using 1D and 2D lists
 - Use list methods to change lists without variable assignment
"""

lst = [1,2,3,4]
result = 0
for item in lst:
    result = result + item
print(result)

#####

def findMax(lst):
    currentMax = lst[0]
    for num in lst:
        if num > currentMax:
            currentMax = num
    return currentMax

print(findMax([5, 1, 12, 3, 10, 9]))