In this tutorial we will learn about python callable() method and it uses.

The callable() method returns True if the specified object is callable. Otherwise, it will return False.
The syntax of callable() method is:
Python callable() Method Parameters
The callable() method will take only a single argument which can be any object.
Let’s see some examples of callable() python.
Example 1: How callable() methods work?
The output will be as follows.
Here the object X and my_list are not callable; hence it is sending False, but the object Y appears to be callable, returning False.
Example 2: Object Appears to be Callable but isn’t callable.
Output:
Here in the above example, the class appears to be callable, but it’s not callable; this code will raise an error when we call class in python.
The output will be as follows.
Rules of Python callable()
- If the object appears to be callable, it will return True.
- If the object appears not to be callable, it will return False.
- Even if callable() is True, it is not important that a given object may fail while calling.