Write a function bigger that consumes two numbers and produces the maximum of the two numbers.
def bigger(a,b):
if a>b:
return a;
elif b>a:
return b;
if __name__ == '__main__':
x=int(input("Enter first number: "))
y=int(input("Enter second number: "))
print("The maximum number is ",bigger(x,y))
Comments
Leave a comment