Determine if two value are not equal with the != operator.
def not_equal(val1, val2):
result = val1 != val2
return result
Function Call | Return Value | |||
---|---|---|---|---|
not_equal(9, 9) | → | |||
not_equal(22, 22) | → | |||
not_equal(8, 7) | → | |||
not_equal(12, 24) | → | |||
not_equal(6, 4) | → |
Experiment with this code on Gitpod.io