Javatpoint Logo
Javatpoint Logo

Python callable() Method

Python callable() method returns True if the argument is callable. It tales an object argument and returns boolean either true or false. Signature of this method is given below.

Signature

Parameters

object: callable object like function, class etc.

Return

It returns boolean either True or False.

Let's see some examples of callable() method to understand it's functionality.

Python callable() Method Example 1

It returns true if the argument is a callable like function or class. See the example below.

Output:

True

Python callable() Method Example 2

Output:

True

Python callable() Method Example 3

Output:

True
False
False
False
False

Next TopicPython Functions




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA