def grade(random, key): if key.find("yum_c00kies!!!") != -1: return True, "Yum!" return False, "Eww... wrong. bad cookie"