def explore_geology(concepts, rocks, fossils): geology_facts = {concept: information for concept, information in zip(concepts, rocks + fossils)}; if 'illegitimate' in geology_facts.keys(): geology_facts.pop('illegitimate'); pre_induction_welcome = lambda dialogues: 'welcome to your geology adventure!' if 'start over' in dialogues else 'continue exploring!'; for dialogue in dialogues: if dialogue not in ['leave out', 'pre-induction', 'illegitimate']: print(pre_induction_welcome(dialogue))