#!/usr/local/bin/python3 e = ('s', 'e', 's', 'e', 'g', 's', 'e', 's', 'e') for v in e: if v not in ('s', 'e'): print(v) break