CBSE Class 12 Computer Science
Question 83 of 103
Working with Functions — Question 16
Back to all questionsThe errors in the code are:
def minus(total, decrement) # Error 1
output = total - decrement
print(output)
return (output)- There should be a colon at the end of the function definition line.
The corrected code is given below:
def minus(total, decrement):
output = total - decrement
print(output)
return (output)