The any() function returns True if any element of an iterable is True. If not, any() returns False.
Page Headers
0 | HTTP/1.1 200 OK |
Server | nginx |
Date | Fri, 06 Nov 2020 07:49:17 GMT |
Content-Type | text/html; charset=utf-8 |
Connection | close |
Vary | Accept-Encoding |
X-Drupal-Cache | MISS |
Expires | Sun, 19 Nov 1978 05:00:00 GMT |
Cache-Control | no-cache, must-revalidate |
X-Content-Type-Options | nosniff |
Content-Language | en |
X-Frame-Options | SAMEORIGIN |
X-Generator | Drupal 7 (http://drupal.org) |
Link |
Keyword Frequency
python | 106 |
false | 32 |
any | 31 |
true | 27 |
16 | |
examples | 13 |
all | 12 |
if | 9 |
are | 9 |
tutorial | 9 |
Keyword Cloud
Python any NEW Basics Video Course now on Youtube Watch Now Tutorials Examples Index Explore Programiz JavaScript C Java Kotlin Swift DSA Start Learning Popular Getting Started With if Statement while Loop in Lists Dictionaries Add two numbers Check prime number Find the factorial of a Print Fibonacci sequence leap year Reference Materials Built-in Functions List Methods Dictionary String View all tutorials examples Get App Mobile abs ascii bin bool bytearray callable bytes chr compile classmethod complex delattr dict dir divmod enumerate staticmethod filter eval float format frozenset getattr globals exec hasattr help hex hash input id isinstance int issubclass iter list Function locals len max min map next memoryview object oct ord open pow print property range repr reversed round set setattr slice sorted str sum tuple type vars zip import super Join our newsletter for latest updates This is required Programming Built In The function returns True element an iterable If not False syntax Parameters takes string dictionary etc Value Returned by boolean value at least one true elements are false or empty Condition Return All values One others Empty Iterable Example Using since and l both Output method works similar way tuples sets like lists Strings Atleast fact s quot good its character with case dictionaries keys key d Share Was this article helpful Sorry about that How can we improve it Feedback References Library div Tutorial Company About Advertising Contact Blog Legal Change Ad Consent Do sell my data Privacy Policy Terms amp Conditions copy Parewa Labs Pvt Ltd rights reserved