Explain Polymorphism in Python?

The word polymorphism means having many forms. In programming, polymorphism means the same function name (but different signatures) being used for different types.

Example of inbuilt polymorphic functions :

# Python program to demonstrate in-built poly- 
# morphic functions 

# len() being used for a string 
print(len("geeks"))
 
# len() being used for a list
print(len([10, 20, 30]))

Output:

5 3