Vidyalelo
Python · Q172

Functions in Python

Programming · Python · question 172

Q172

What will be the output of the following Python code? def writer(): title = 'Sir' name = (lambda x:title + ' ' + x) return name who = writer() who('Arthur')

A.
Arthur Sir
B.
Sir Arthur
Answer
C.
Arthur
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board