Skip to content

How to check case of string in Python?

Call str. islower() with str as a string to determine if str is all lowercase. Call str. isupper() to determine if str is all uppercase.
See also  Python code snippet - How to sort a list descending ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.