Implement a function that returns the highest value in a given list

[4, 10, 20, 12]
user
def maxValue(array):
    maxVal = 0
    for i in array:
        if i > maxVal:
            maxVal = i 
    return maxVal 

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