MENU
Question -

Find the error
def minus (total, decrement)
output = total – decrement
return output



Answer -

The function’s header has colon missing at the end.
So add colon (:) at end of header line.
Thus, the correct code is

def minus (total, decrement)
output = total – decrement
return output

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×