I've got the following code:
fn = input("Choose a function(1, 2, 3, 4, 5, other(quit)): ");
while (not(fn > '5' or fn < '1')):
print("hello world");
This works, most of the time. For example, if I input 54 or some crazy number, it will never print "hello world".
However, when I enter 45, it does enter the loop.
Why is this?