input() returns what you typed in as a string so this must be converted into a number using the int() function.
Of course if you type ABC the function int() throws an error as this cannot be converted into a number.
Of course if you type ABC the function int() throws an error as this cannot be converted into a number.