Created
July 28, 2020 13:17
-
-
Save FerdinaKusumah/c0609529187662dbe66c143750f0667d to your computer and use it in GitHub Desktop.
[Python] Chain comparison
This file contains hidden or 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
"""Chain comparison""" | |
a = 5 | |
b = 10 | |
find = 3 | |
middle = find < a < b | |
# True | |
found = find == 3 < a < b | |
# True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment