Python Polymorphism Function || Polymorphism || Python

In this we are going to see a basic program on Python Polymorphism Function in Python Programming Language.


def add(x, y, z=0):
    return x + y+z

print(add(2, 3))
print(add(2, 3, 4))

# Coded By Dhiraj Shelke

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post