def summarize_exit_codes(exit_codes):
 for ec in exit_codes:
  if (ec != 0):
   return ec
 return 0

def summarize_exit_codes ( exit_codes ) : for ec in exit_codes : if ( ec != 0 ) : return ec return 0
take a list of exit codes .