Created
June 9, 2018 17:21
-
-
Save crunchywelch/23861db47b68d23adbf422cfb6dd7563 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
#!/usr/bin/python | |
import re, sys | |
regex = re.compile('^[A-Z]') | |
def is_upper_AZ(x): | |
return regex.match(x) | |
if is_upper_AZ(sys.argv[1]): | |
print('match') | |
else: | |
print('no match') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment