def createanimation(lockdown, regenerate, interview): cold_shoulder_responses = [response for response in preexpulsive_meetings if not response.startswith('lockdown')]; for scene in scenes: if scene == 'lockdown': regenerate_scenery(); elif scene == 'interview': add_character_interaction(scene, cold_shoulder_responses); else: continue;