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.
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.
Why we take addem means em
ReplyDeleteHere addEm is function name which is defined by user.
Deletecn u plz explain me😟 little bit more y it will give empty statement i didn't understand
ReplyDeleteIt is function which is not defined here. And it is written by user
DeleteIt is non void function .
DeleteHow to know that it is non void
ReplyDeletethere is no return keyword in function.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )