In [3]:
f = lambda x: 1
In [4]:
callable(f)
Out[4]:
In [5]:
def fun():
return 1
In [6]:
callable(fun)
Out[6]:
In [7]:
x = 1
In [8]:
callable(x)
Out[8]:
In [ ]:
f = lambda x: 1
callable(f)
def fun():
return 1
callable(fun)
x = 1
callable(x)