Yes, you are using
Look at https://docs.python.org/3/library/stdtyp...ue-testing
and
wrongLook at https://docs.python.org/3/library/stdtyp...ue-testing
'A' and 'B' and 'C' in x
is same as True and True and 'C' in x
def check(iterable): sequences = ('ABC', 'ADG', 'AEI', 'IHG', 'IFC', 'DEF', 'BEH') return any(all(char in iterable for char in seq) for seq in sequences)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs