Как исправить мой код на питоне?
a,b,c,d = int(input()),int(input()),int(input()),int(input())
if a < b, a < c, a < d:
print(a)
else:
if b < a, b < c, b < d:
print(b)
else:
if c < a, c < b, c < d:
print(c)
else:
print(d)
Задача:Напишите программу, которая определяет наименьшее из четырёх чисел.
Формат входных данных
На вход программе подаются четыре целых числа.
Формат выходных данных
Программа должна вывести наименьшее из четырёх чисел.
print(min(int(input()), int(input()), int(input()), int(input())))
И это весь необходимый в Python код.
values = []
for a in range(4):
values.append(int(input()))
values.sort()
print(values[0])
a, b, c, d = int(input()), int(input()), int(input()), int(input())
if a < b and a < c and a < d:
print(a)
elif b < a and b < c and b < d:
print(b)
elif c < a and c < b and c < d:
print(c)
else:
print(d)
че за ерунда, бесполезный скрипт