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