Created
August 22, 2017 16:40
-
-
Save konabe/5715612dd5344def435e07c79ba91911 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
char = 'a' | |
if char in ('z', 'Z',): | |
#alternative writing | |
#char == 'z' or char == 'Z': | |
print('The char is last one.') |
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
char = 'a' | |
if char == 'z' or 'Z': | |
print('The char is last one.') | |
# The char is last one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment