Why not use str.isupper()
;
In [2]: word = 'asdf'
In [3]: word[0].isupper()
Out[3]: False
In [4]: word = 'Asdf'
In [5]: word[0].isupper()
Out[5]: True
More Related Contents:
- Is there an equivalent to CTRL+C in IPython Notebook in Firefox to break cells that are running?
- Keras, how do I predict after I trained a model?
- Is it possible to run python SimpleHTTPServer on localhost only?
- Matplotlib: avoiding overlapping datapoints in a “scatter/dot/beeswarm” plot
- Why doesn’t ignorecase flag (re.I) work in re.sub() [duplicate]
- Is there an “ungroup by” operation opposite to .groupby in pandas?
- Get multiple request params of the same name
- Python: deleting a class attribute in a subclass
- advanced string formatting vs template strings
- Understanding Multiprocessing: Shared Memory Management, Locks and Queues in Python
- Python: take max N elements from some list
- Django Shell No module named settings
- Difference between plt.imshow and cv2.imshow?
- Pandas rank by multiple columns
- Interpolating a closed curve using scipy
- Decrypting Chromium cookies
- Procrustes Analysis with NumPy?
- Using greater than operator with subprocess.call
- how to make sprite move upwards and downwards with joystick in pygame
- Pandas ValueError Arrays Must be All Same Length
- Terminate a Python multiprocessing program once a one of its workers meets a certain condition
- How to automatically get user’s timezone from client in Django?
- Tyring to set up modelview with Flask-Admin causes ImportError
- How do I get a decimal value when using the division operator in Python?
- Skipping every other element after the first [duplicate]
- How to get the dependency tree with spaCy?
- Pandas – make a column dtype object or Factor
- python pandas- apply function with two arguments to columns
- (Python) ValueError: Program dot not found in path
- Remove time portion of DateTime index in pandas