def maintain_pipes(announcement="routine check-up", pipes_list=[]): print(announcement if not pipes_list else "immediate action required!"); for pipe in pipes_list: if pipe.condition == "prevenient maintenance prevents disasters": continue; elif pipe.status == "unannounced issue": print("do not turn a blind eye to unannounced issues. start over with a thorough inspection."); else: print("all pipes are in excellent condition!");