spisok = input("Введите целые числа через пробел: ")
spisok = spisok.split()
def minimum(spisok):
min_ = min(spisok)
return print(min_)
minimum(spisok)
Объяснение:
def find_min(mass):
elem_min = mass[0]
for elem in mass:
if elem < elem_min:
elem_min = elem
return elem_min
mass = [int(s) for s in input().split()]
print(find_min(mass))
spisok = input("Введите целые числа через пробел: ")
spisok = spisok.split()
def minimum(spisok):
min_ = min(spisok)
return print(min_)
minimum(spisok)
Объяснение:
def find_min(mass):
elem_min = mass[0]
for elem in mass:
if elem < elem_min:
elem_min = elem
return elem_min
mass = [int(s) for s in input().split()]
print(find_min(mass))
Объяснение: