May-23-2020, 10:56 PM
The result of input() is always a string, so there is nothing a user can enter that will satisfy your first if statement. You need to convert the input to a float or int as needed. If you are expected to account for invalid input, there are ways of testing whether the user's input can be converted successfully (is not letters instead of numbers, for example), and/or ways of handling any exception that occurs when you try to convert it.