How would you write, in python:
if key < 1 or key > 34:
I've tried every way I can think of, and am finding it very frustrating.
The if keyword is not an int or float value but it is a string, you need to convert it to an int first by following ways:-
key = int(key)
or to a float by doing
key = float(key)