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

def from_list(cls, actions):
        '''convert list of actions into the corresponding bitmask'''
        bitmask = 0
        for a in actions:
            bitmask |= cls.action_bitmask(a)
        return Action(bitmask)