Skip to content

Instantly share code, notes, and snippets.

@soniagrajales
Created May 17, 2021 11:49
Show Gist options
  • Save soniagrajales/ae8d48b901aefa854d2c9785e53f0144 to your computer and use it in GitHub Desktop.
Save soniagrajales/ae8d48b901aefa854d2c9785e53f0144 to your computer and use it in GitHub Desktop.
Ejemplo de condicional en Python
"""
Condicionales
Sonia Grajales
"""
numero_1 = int(input('Ingrese número 1:'))
numero_2 = int(input('Ingrese número 2:'))
if numero_1 >= numero_2:
print('Número 1 es mayor a número 2')
else:
print('Número 2 es mayor a número 1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment