Q. What will the following function return?


def addEm(x, y, z):

    print (x + y + z)



Answer =

It is a void function. 

So, it will return None.

If we pass values of x,y, and z in function. It will give an output that is x + y + z.

7 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Replies
    1. Here addEm is function name which is defined by user.

      Delete
  2. cn u plz explain me😟 little bit more y it will give empty statement i didn't understand

    ReplyDelete
    Replies
    1. It is function which is not defined here. And it is written by user

      Delete
  3. How to know that it is non void

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post