callable()Easy Examples

Returns True if the object appears callable (has __call__)

Basic callable() usage

Simple demonstration of the callable() built-in function.

python
print(callable(print))
print(callable(42))
print(callable(lambda x: x))

class Adder:
    def __call__(self, x): return x + 1

print(callable(Adder()))

callable() is a built-in function that returns true if the object appears callable (has __call__).

callable() with different inputs

Calling callable() with various argument types.

python
# More callable() examples
print("callable() is a Python built-in function")
print(f"Type: {type(callable)}")

callable() accepts different types of arguments and produces corresponding results.

Want to try these examples interactively?

Open Easy Playground