Podcast Beta
Questions and Answers
what will be the output of the following code? def test(name,age=20,gender): print(name,age,gender) test('Akash',25,'Male')
what will be the output of the following code? z=lambda x:x*x**5 print(z(6))
what will be the output of the following code? def outer_fun(x,y): def inner_fun(m,n): m=6 return m+n return inner_fun(x,y) return x result=outer_fun(15,10) print(result)
lambda is a function in python?
Signup and view all the answers
what is the keyword used to define a function in python?
Signup and view all the answers
what will be the output of the following code? def printval(*args): for i in args: print(i) printval(name="Vijay",age="45")
Signup and view all the answers
what is the purpose of the *args parameter in a function definition?
Signup and view all the answers
what is the purpose of the return statement in a python function?
Signup and view all the answers
what will be the output of the following code? def myfunc(x): return lambda y:y*x mytripler=myfunc(5) print(mytripler(10))
Signup and view all the answers
select which is true for python function.
Signup and view all the answers