Home >>Python Built-in Functions >Python callable() Function
Python callable() function is used to check and return True if the given input object is callable and returns False if it is not.
Syntax:callable(object)
Parameter | Description |
---|---|
object | This parameter defines the object to test if it is callable or not. |
def x(): x = 15 print(callable(x))
x = 15 print(callable(x))