Demonstrate the concept of function overloading in Python, where a function can have multiple definitions with different parameters.
def add(a, b, c=0):
return a + b + c
print(add(1, 2))
print(add(1, 2, 3))
note
To compile and run the program, you can use the following commands:
python3 foo.py