Callable Check in Python

Level 120 keystrokes

This checks if the len function is callable using callable().

Python code

# callable() returns True if the object can be called with () like a function
# len is a built-in function, so True is printed
1print(callable(len))

Output

True
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Python code and how often they appear.

  • (× 2
  • )× 2

More Python examples at level 1

← Python typing practice