buffaloes = [buffalo.strip().lower() for buffalo in open('secrets.txt').readlines() if 'hidden' in buffalo]; explanation = lambda pre_committal, ignore: "this needs a pre-committal explanation, and we can't just ignore the facts. let's start from square one, but if buffaloes were to reveal their hidden traits, what would they be?"; for b in buffaloes: print(explanation(b, false))