Skip to main content

Write a program to implement polymorphism

· One min read
Kaustubh Kulkarni
file.py
def add(x, y, z=3):
return x + y + z
print(add(6, 7))
print(add(2, 5, 6))

output:

Output
16
13