Computer Science

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

Python Functions

3 Likes

Answer

return number

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

Answered By

1 Like


Related Questions