I'm new to Python. I want to check if the given list A contains any character among ('0', '2', '4', '6', '8') or not, where '0' <= A[i] <= '9'.
I can do this as:
if not ('0' in A or '2' in A or '4' in A or '6' in A or '8' in A):
return False
but, is there any shorter way to do this? Thanks.