for each in seq:
    print(each)
print([(each in halum) for halum in mainseq])
print(any(each in halum for halum in mainseq))
print(bool(each in halum for halum in mainseq))
Проблема с синтаксисом python «любой»