17. Functions: Advance
Arbitrary Arguments :
def add(*x): #*x is an arbitrary argument.
print(x)
add(5,3,3,7,8,9) def add(*x): #*x is an arbitrary argument.
s = 0
for i in x :
s = s+i
print(f'sum of numbers is {s}')
add(5,3,3,7,8,9) Calling a function as an argument :
Types of Functions :
return multiple values to function :
Recursion :
Lambda Function :
How to use lambda Functions in Python?
Example of Lambda Function in python:
Last updated
