Sep-22-2021, 03:33 PM
A bare digit in your code is interpreted as a literal
You need to either store and compare to strs, or you need to cast your input into an int or float. (via
int
. But input() always returns a str
. Those can never be equal.You need to either store and compare to strs, or you need to cast your input into an int or float. (via
int()
or float()
)