Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python function to do comparison between two numbers

def comparison(x,y)-> int:
    if x > y:
        result = x," is grater than ",y
    elif x < y:
        result = x," is less than ",y
    elif x == y:
        result = "Both numbers are equal are equal"
    return result
print(comparison(90,90))
 
PREVIOUS NEXT
Tagged: #python #function #comparison #numbers
ADD COMMENT
Topic
Name
2+3 =