Skip to content

Python any

if any Python

  • by

Python has a built-in any() function for exactly “if any” purpose. Also, if you’re going to use “True in …”, make it a generator expression… Read More »if any Python

Not any Python

  • by

Using python Not any() will deal with values that aren’t explicitly True or False. You have to write a generator expression that tests your custom… Read More »Not any Python