Answers for "python function to do comparison between two numbers"

1

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))
Posted by: Guest on October-05-2021
0

python compare numbers

if 5 > 2:
	print("Five is greater than two!")
Posted by: Guest on June-05-2021

Code answers related to "python function to do comparison between two numbers"

Python Answers by Framework

Browse Popular Code Answers by Language