Python Dado dos numero determinar cual es el mayor, menor o son iguales
# -*- encoding: utf8 -*-
x = input("Digite un numero: ")
y = input("Digite un numero: ")
while x <= 0 or y <=0:
x = input("Digite un numero mayor a cero: ")
y = input("Digite un numero mayor a cero: ")
if x < y:
print x, "es menor que", y
elif x > y:
print x, "es mayor que", y
else:
print x, "y ", y, "son iguales"
x = input("Digite un numero: ")
y = input("Digite un numero: ")
while x <= 0 or y <=0:
x = input("Digite un numero mayor a cero: ")
y = input("Digite un numero mayor a cero: ")
if x < y:
print x, "es menor que", y
elif x > y:
print x, "es mayor que", y
else:
print x, "y ", y, "son iguales"