How can I write multiple functions in python with the same name and a different number of arguments so that function execution is decided by the number of arguments? I am having an error in executing the following program in Python
def area(r):
a=3.14*r*r
return a
def area(l,b):
a=l*b
return a
print(area(710))
print(area(6,2))