<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

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_level]