n = int(input())
min = max = n
while n != 0:
if n > max:
max = n
if n < min:
min = n
print(f'max = {max}\nmin = {min}')
Объяснение:
l = []
uinput = int(input())
while uinput != 0:
l.append(uinput)
print(f'max = {max(l)}\nmin = {min(l)}')
n = int(input())
min = max = n
while n != 0:
if n > max:
max = n
if n < min:
min = n
n = int(input())
print(f'max = {max}\nmin = {min}')
Объяснение:
l = []
uinput = int(input())
while uinput != 0:
l.append(uinput)
uinput = int(input())
print(f'max = {max(l)}\nmin = {min(l)}')