This is the code
def reverse(arg):
if arg == False or arg == True:
return not arg
else:
return("boolean expected")
for some reason when running the function with 0 as a parameter it returns True instead of "boolean expected"