Неверный синтаксис if-else [закрыто]Python

Программы на Python
Гость
Неверный синтаксис if-else [закрыто]

Сообщение Гость »

Код: Выделить всё

a = input("enter the first age ")
print(a)
b = input("enter the seond age ")
pint(b)
c = input("enter the third age ")
print(c)
if (a != b and a != c and b != c):
{
if (a>b and a>c):
print ("a is the largest")
if (b>a and b>c):
print ("b is the largest")
else:
print ("c is the largest")
}
else:
print ("please enter distinct digits")
Компилятор сообщает, что «неверный синтаксис» для строки 9. Пожалуйста, дайте мне знать.
Ранее я писал, как if(), поэтому я дал пробел if ()
Я считаю, что отступ правильный.

Подробнее здесь: https://stackoverflow.com/questions/781 ... lid-syntax

Вернуться в «Python»