code: def survival_rate(work_db):
      
      kills = sum(r.is_killed for _, r in work_db.results)
      num_results = work_db.num_results
  
      if not num_results:
          return 0
  
      return (1 - kills / num_results) * 100
docs: Calcuate the survival rate for the results in a WorkDB.