Created
May 17, 2021 11:49
-
-
Save soniagrajales/ae8d48b901aefa854d2c9785e53f0144 to your computer and use it in GitHub Desktop.
Ejemplo de condicional en Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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