Introduction
The any() and all() functions help check if some or all items in a group meet a condition. They make it easy to test many things quickly.
Check if at least one light bulb in a string is working.
Verify if all students passed an exam.
Find out if any item in a shopping list is out of stock.
Confirm that all tasks in a to-do list are done.