Created
April 15, 2020 16:49
-
-
Save HectorTorres/8a226e288f028ed6768fdcb8bcbfaef2 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
x = 5 | |
print(x > 3 and x < 10) | |
#El resultado es True porque 5 es mayor que 3 y menor que 10 | |
x = 5 | |
print(x > 3 or x < 4) | |
#El resultado es True porque una de las condiciones es verdad (5 es mayor que 3) | |
x = 5 | |
print(not(x > 3 and x < 10)) | |
#Sin la función not el resultado sería True. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment