IsLower() Python Function 101: The Hard Way vs The Easy Way
By Robin Dacalor · October 24, 2022 · 4 min read
Difficulty Level: Basic
In this article, we will discuss how to use the IsLower() Python function.
This function is a built-in operation used for handling strings.
Let’s dive into what this function is and how to use it in both Code & No Code Python.
Summary
What is IsLower() Python Function?
In Python, islower() is a built-in method used for handling string data type. This method returns “True” if all characters in the string are lower case, otherwise, returns “False”.
- It does not need any parameters, it just returns an error if a parameter is passed.
- Numbers, symbols & spaces are not checked, only string characters.
This function is used when checking if the argument contains any lowercase characters:
IsLower() Python Function: The Hard Way With Code
Dataset:
Let’s take a look at the following Public Sample Dataset (available to use for free).
Example:
Input:
SELECT IsLower(TerritoryName)
FROM UK Greenhouse Gas Emissions
Output:
False
IsLower() Python Function: The Easy Way Without Coding
Syntax:
Example:
Input:
Output:
Conclusion
At RestApp, we’re building a Data Activation Platform for modern data teams with our large built-in library of connectors to databases, data warehouses and business apps.
We have designed our next-gen data modeling editor to be intuitive and easy to use.
If you’re interested in starting with connecting all your favorite tools, check out the RestApp website or try it for free with a sample dataset.
Discover the next-gen end-to-end data pipeline platform with our built-in No Code SQL, Python and NoSQL functions. Data modeling has never been easier and safer thanks to the No Code revolution, so you can simply create your data pipelines with drag-and-drop functions and stop wasting your time by coding what can now be done in minutes!
Discover Data modeling without code with our 14-day free trial!
Category
Subscribe to our newsletter
Related articles
PYTHON
Convert String to Boolean in Python
Brian Laleye
September 13, 2022 · 5 min read
SQL
PostgreSQL Array Functions 101: The Practical Guide
Brian Laleye
October 20, 2022 · 7 min read
SQL
PostgreSQL Max() Function: The 2 Methods
Brian Laleye
October 17, 2022 · 5 min read
Build better data pipelines
With RestApp, be your team’s data hero by activating insights from raw data sources.