CBSE Class 12 Computer Science Question 29 of 103

Working with Functions — Question 5

Back to all questions
5
Question

Question 5

Pick one the following statements to correctly complete the function body in the given code snippet.

def f(number):  
    #Missing function body  
print(f(5))
  1. return "number"
  2. print(number)
  3. print("number")
  4. return number
Answer

return number

Reason — The syntax of return statement is :
return <value>
According to this, the correct return statement is return number.