any: Check if Any Element of an Iterable is True

any: Check if Any Element of an Iterable is True

If you want to check if any element of an iterable is True, use any. In the code above, I use any to find if any element in the text is in uppercase.

Link to the source code.

Search

Related Posts

Related Posts

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran