Javatpoint Logo
Javatpoint Logo

Python callable() Function

A python callable() function in Python is something that can be called. This built-in function checks and returns True if the object passed appears to be callable, otherwise False.

Signature

callable(object)

Parameters

object - The object that you want to test and check, it is callable or not.

Return

Returns True if the object is callable, otherwise False.

Let's see some examples of callable() function.

Python callable() Function Example 1

Check if a function is callable:

Output:

True

Python callable() Function Example 2

Check if a function is not callable (such as normal variable).

Output:

False





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA