The Boolean Any And All Operators in Python are Great for Input

The aim of this page📝is to describe any and all boolean operators in python and a single simple usecase that is input validation.

1. steps/?

2. example

if any([name[:2] in folder for folder in sectionFolders]):
raise ValueError(
f"ID already used, select a proper one"

3. sources

Technical Support Engineer of Behavioural Data Platform (Snowplow Analytics). On comparison of programming languages, history of computing, and raw playbooks.