HomeFunction (Preeti Arora) What is wrong with following function definition? def addEm(x, y, z): return x + y + z 4 Comments Facebook Twitter Q. What is wrong with the following function definition?def addEm(x, y, z): return x + y + z print("the answer is", x + y + z)Answer =When function called then it will add all the argument and it will show no result.
how
ReplyDeletereturn is written before print , so when function will call then print statement will not give any result.
DeleteOk
ReplyDelete: )
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )