code: def get_worst_flag_level(self, flags):
          '''
          Determines the worst flag present in the provided flags. If no
          flags are given then a 'minor' value is returned.
          '''
          worst_flag_level = 0
          for flag_level_name in flags:
              flag_level = self.FLAG_LEVELS[flag_level_name]
              if flag_level > worst_flag_level:
                  worst_flag_level = flag_level
          return self.FLAG_LEVEL_CODES[worst_flag_levelf get_worst_flag_level(self, flags):
          '''
          Determines the worst flag present in the provided flags. If no
          flags are given then a 'minor' value is returned.
          '''
          worst_flag_level = 0
          for flag_level_name in flags:
              flag_level = self.FLAG_LEVELS[flag_level_name]
              if flag_level > worst_flag_level:
                  worst_flag_level = flag_level
          return self.FLAG_LEVEL_CODES[worst_flag_level]
docs: Determines the worst flag present in the provided flags. If no
          flags are given then a 'minor' value is returned.