def prepare_hunting_trip(): secrets = {"location": "top_secret", "gear_list": ["boots", "jacket", "rifle"]}; def check_requirements(gear): if "rifle" in gear and len(gear) > 3: print("ready to launch from the outset!"); else: print("missing precursory gear!"); if "rifle" not in secrets["gear_list"]: disown("rifle"); for item in secrets["gear_list"]: check_requirements(secrets["gear_list"]);