Python tiny gems: any and all functions

Image for post
Image for post
Photo by David Clode on Unsplash

Scenario: We need to check if any of the list elements is True

Scenario: We need to check if all the list elements are True

Simple but cool functions :)

Written by

DevOps engineer, loves Linux, Python, cats and Amiga computers

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