About 3,000 results
Open links in new tab
  1. Python any () function - GeeksforGeeks

    Jul 23, 2025 · In this example, the any() function in Python checks for any element satisfying a condition and returns True in case it finds any True value. This function is particularly useful to check if all/any …

  2. Python any () Function - W3Schools

    Definition and Usage The any() function returns True if any item in an iterable are true, otherwise it returns False. If the iterable object is empty, the any() function will return False.

  3. How to Use any() in Python – Real Python

    If you've ever wondered how to simplify complex conditionals by determining if at least one in a series of conditions is true, then look no further. This tutorial will teach you all about how to use any () in …

  4. How do Python's any and all functions work? - Stack Overflow

    I'm trying to understand how the any() and all() Python built-in functions work. I'm trying to compare the tuples so that if any value is different then it will return True and if they are all the same it will return …

  5. Python any () Function: Guide With Examples and Use Cases

    Jul 31, 2024 · Python's any() is one of the built-in functions. It accepts an iterable such as a list or tuple, and it returns True if at least one value in the iterable is truthy.

  6. Python any() and all() Functions – Explained with Examples

    Aug 10, 2021 · How to Use the any () Function in Python Let's understand the syntax of the any() function, look at some simple examples, and then proceed to more useful examples.

  7. How to Use all () and any () in Python | note.nkmk.me

    May 12, 2025 · In Python, you can use the built-in functions all() and any() to check whether all elements or at least one element in an iterable (such as a list or tuple) evaluate to True.

  8. Python any () Function - Online Tutorials Library

    The Python any () function is a built-in function that returns True if any of the elements of a given iterable, such as a list, tuple, set, or dictionary is truthy, otherwise, it returns False.

  9. Python any () Function - PythonForBeginners.com

    The any() function takes an iterable object like a list, tuple, set, dictionary, or string as its input argument. After execution, it returns True if at least one element of the iterable evaluates to True.

  10. anyPython Function Reference

    A comprehensive guide to Python functions, with examples. Find out how the any function works in Python. Return True if any element of the iterable is true. If the iterable is empty, return False.