CBSE Class 12 Computer Science
Question 68 of 103
Working with Functions — Question 1
Back to all questionstotal = 0
def sum(arg1, arg2):
total = arg1 + arg2
print("Total :", total)
return total
sum(10, 20)
print("Total :", total)Total : 30
Total : 0
- There is an indentation error in second line.
- The return statement should be indented inside function and it should not end with semicolon.
- Function call should not end with semicolon.