) Write function def greater() which takes two parameters n and m and return greater from both . if both
numbers are equal function returns -1.
Answers
Answered by
3
def greater(n, m):
if n == m:
return -1
return n if n > m else m
n, m = [int(n) for n in input("enter n m: ").split()]
print(greater(n, m))
Similar questions