Functions Questions
Q. What is the output of lambda x, y: x + y (2, 3)?
View SolutionQ. What is returned if a function lacks return?
View SolutionQ. What is the output of def multiply(*args): return args[0] * args[1] print(multiply(2, 3))?
View SolutionQ. Which function returns the type of an object?
View SolutionQ. What is the output of def greet(name=’Guest’): return ‘Hello ‘ + name print(greet())?
View SolutionQ. Which built-in function sorts a list?
View SolutionQ. Which keyword returns a value from a function?
View SolutionQ. Which keyword defines a function?
View SolutionQ. What does def add(a, b): return a + b print(add(3, 4)) output?
View SolutionQ. Which built-in function counts items in a list?
View SolutionGet Question Bank
Strengthen Your Practice with our comprehensive question bank.