Source Code:
(back to article)
def my_function(): pass var1 = my_function if callable(var1): print("var1 is a function") else: print("var1 is not a function")
Result:
Report an issue