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

def actions(self, state):
        'actions are index where we can make a move'
        actions = []
        for index, char in enumerate(state):
            if char == '_':
                actions.append(index)
        return actions