Python Forum

Full Version: TypeError: '<' not supported between instances of 'int' and 'builtin_function_or_meth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
z = input
a = 0;
b = 1;
if a == z:
print ('dsdaa');
if b < z:
print ('kdaas');


whats wrong i just started doing this for school project?
z = input means z now refers to the same thing as input, which is a built-in function.
If you want to get actual input from the user, you'll have to call the function, i.e. z = input().
If you want to compare that input to 0 and 1, you'll also have to convert it toan int.