Created
June 19, 2020 17:57
-
-
Save HectorTorres/5791617dd87f877cf50fa07289fe1c15 to your computer and use it in GitHub Desktop.
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
#Esto es una estructura if | |
a = 40 | |
b = 200 | |
if b > a: | |
print("b es mayor que a") | |
a = 15 | |
b = 15 | |
if b > a: | |
print("b es mayor que a") | |
elif b == a: | |
print("a y b son iguales") | |
a = 200 | |
b = 40 | |
if b > a: | |
print("b es mayor que a") | |
elif b == a: | |
print("a y b son iguales") | |
else: | |
print("a es mayor que b") | |
a = 2 | |
b = 60 | |
if a < b: print("a es menor que b") | |
print("A") if a > b else print("B") | |
a = 200 | |
b = 33 | |
c = 500 | |
if a > b and c > a: | |
print("Ambas condiciones son ciertas") | |
a = 200 | |
b = 33 | |
c = 100 | |
if a > b or c > a: | |
print("Al menos una condición es cierta") | |
x = 19 | |
if x > 10: | |
print("x es mayor que 10") | |
if x > 20: | |
print("x también es mayor que 20") | |
else: | |
print("pero no mayor a 20") | |
a = 15 | |
b = 99 | |
if b > a: | |
pass | |
print("Nos vemos en el siguiente tutorial! :D") | |
# https://hetpro-store.com/TUTORIALES/category/programacion/python/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment