find Greater or equal number in python



Find GREATER NUMBER or Both are equal in Python


def greater_smaller(num1,num2):
if num1>num2:
return "num_1 is greater"
       elif num2>num1:
return "num_2 is greater"
 return "both are equal"
num1,num2=input("enter your num1&num2 values:").split(",")
print(greater_smaller(num1,num2))

find Greater or equal number in python

Have any Question or Comment?

One comment on “find Greater or equal number in python

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories

You have successfully subscribed to myprogrammingschool

There was an error while trying to send your request. Please try again.

My Programming School will use the information you provide on this form to be in touch with you and to provide updates and marketing.