The any() Function in Python

Learn about the any() function in Python

Luay Matalka
Geek Culture
Published in
2 min readJul 31, 2021

--

Photo by Pakata Goh on Unsplash

or operator

Let’s say a job posting only requires one of the following to be true: at least 10 years of SQL experience, or 12 years of machine learning experience, or 8 years of statistical analysis experience.

We can write a function that checks if any of those are True by using the or

--

--

Luay Matalka
Geek Culture

Lead Machine Learning Engineer, specializing in MLOps, with a passion for teaching.