Python: Any() Function Tutorial

Hi everyone, welcome back. Today, we will be going over the any() function in Python and see how it works. The any() function is a built in function and can be used to check if any of the values within an iterable object is a true value. The any() function returns a boolean value. With this introduction out of the way, let’s get into it.

Any() Function

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store