selfstudys_com_file (5)
selfstudys_com_file (5)
function(1,2,3)
will print
123
function(1,2)
will print
123
8. What is the meaning of return value The Python return statement is a special
of a function? Give an example to statement that you can use inside a function or
illustrate its meaning. method to send the function's result back to the
caller. A return statement consists of the return
keyword followed by an optional return value.
def calc_sum(a,b):
return a+b
sum_val=calc_sum(2,3)
print(sum_val)