<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def choose_weapon(decision, weapons):
 """Chooses a weapon from a given list based on the decision."""

    choice = []
    for i in range(len(weapons)):
        if (i < decision):
            choice = weapons[i]
    return choice