Я новичок в программировании. Как я могу получить сообщение об ошибке, если введу строку, используя оператор if else в Python.
x = int(input("Enter the no."))
if (x>5):
print (x ,'Is greater than 5')
elif (x==str):enter code here
print('Incorrect input')
elif (x==5):
print (x ,'Is equal to 5')
elif (x
Подробнее здесь: https://stackoverflow.com/questions/421 ... -me-please
Мобильная версия