Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created April 15, 2020 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/8a226e288f028ed6768fdcb8bcbfaef2 to your computer and use it in GitHub Desktop.
Save HectorTorres/8a226e288f028ed6768fdcb8bcbfaef2 to your computer and use it in GitHub Desktop.
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