n=int(input("Enter the limit:"))
a=[]
print("Enter the elements")
for i in range(n):
    b=int(input())
    a.append(b)
def mm():
    min=a[0]
    max=a[0]
    for i in range(len(a)):
                if min>a[i]:
                    min=a[i]
                if max<a[i]:
                    max=a[i]
    print("Maximum value is",max)
    print("Minimum value is",min)
mm()

4d6cb54465f2b0a31accfc0037bf0ca5805d765f
<mask token>

<mask token>


def mm():
    min = a[0]
    max = a[0]
    for i in range(len(a)):
        if min > a[i]:
            min = a[i]
        if max < a[i]:
            max = a[i]
    print('Maximum value is', max)
    print('Minimum value is', min)


<mask token>

<mask token>
print('Enter the elements')
for i in range(n):
    b = int(input())
    a.append(b)


def mm():
    min = a[0]
    max = a[0]
    for i in range(len(a)):
        if min > a[i]:
            min = a[i]
        if max < a[i]:
            max = a[i]
    print('Maximum value is', max)
    print('Minimum value is', min)


mm()

n = int(input('Enter the limit:'))
a = []
print('Enter the elements')
for i in range(n):
    b = int(input())
    a.append(b)


def mm():
    min = a[0]
    max = a[0]
    for i in range(len(a)):
        if min > a[i]:
            min = a[i]
        if max < a[i]:
            max = a[i]
    print('Maximum value is', max)
    print('Minimum value is', min)


mm()

n=int(input("Enter the limit:"))
a=[]
print("Enter the elements")
for i in range(n):
    b=int(input())
    a.append(b)
def mm():
    min=a[0]
    max=a[0]
    for i in range(len(a)):
                if min>a[i]:
                    min=a[i]
                if max<a[i]:
                    max=a[i]
    print("Maximum value is",max)
    print("Minimum value is",min)
mm()
