When running a function, where H is some other function.
def f1(x):
f1 = 5000 - H(x)
if f1 >= 0:
return f1
if f1 < 0, then it returns None, but somewhere else in my program, I want to do something if the functions returns None. I know if it is a list then I can check if it is empty but I do not want it to return a list.
Thanks
I have no idea. I end up getting TypeError: '>=' not supported between instances of 'NoneType' and 'int'
which I do not understand.