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

Leave a Comment

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