Answer to Question #199024 in Python for kolsuz

Question #199024

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




1
Expert's answer
2021-05-26T13:49:28-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS