user
Task: Implement a function that returns the highest value in a given list
Input: [4, 10, 20, 12]
Output:
assistant
def maxValue(array):
    maxVal = 0
    for i in array:
        if i > maxVal:
            maxVal = i 
    return maxVal 

maxVal = maxValue([4, 10, 20, 12]) 
print(maxVal)