Question #199024

Write a function bigger that consumes two numbers and produces the maximum of the two numbers.




Expert's answer

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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS