#a = [1,2,3,4]
#print(max(a))
#print(min(a))

def maxi(a,n):
    m = a[0]
    for i in range(1,n):
        if a[i] > m:
            m = a[i]
    return m
            
    
a = [1,2,3,4]
n = len(a)
maximun = maxi(a,n)
print(maximun)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: