def explore_world_history(): nonpublic_info = get_nonpublic_resources(); for era in nonpublic_info: if era.specifications['need_to_renounce']: adjust_attitude(era); elif era.preexpenditure > budget_limit: continue; else: print("time to begin afresh with new insights into history!");