This article and we share the main is python in the other side of the iteration related content, together to see it, hope to learn Python to help you. Return true if any element of the iterable is true. If the iterable is empty, return False. Equivalent to: ( Returns true if any of the element in Iterable is true. Returns False if Iterable is empty. Equivalence with:)def any(iterable): forElementinchIterable:ifElementreturnTrue returnFalseFor an object that can be iterated, to know whether one of the elements conforms to an expression,Any (), but it's better. forToday, we know that the For loop can also be used to cycle the method, although before the list of what can be put, but put the method or the head to meet, the road of learning is really a long way to go.Practical UseQuestions:Given a string S.your task is to find out if the string S contains:alphanumeric characters, alphabetical characte RS, digits, lowercase and uppercase characters. give you a string S. Your task is to determine if a string S contains: alphanumeric characters have numbers in alphabetical order (Unicode) with lowercase letters and uppercase forMethodinch[Str. Isalnum,Str. Isalpha,Str. IsDigit,Str. Islower,Str. isupper]:p rint Any (method (c) forCinchs) Source: Zhuhao ' s Blog
How Python iterates over a method