I am looking to edit elements in a list bar one element - I am wondering how to do so? I am making one element go up, the one selected, and the others to go down. I have worked out how to do the first bit, just not the second. Here is my code so far
score = [70,60,80]
action = ["one person off", 2, 200]
def take_action(score, action):
x = action[1]
if action[0] = "one person off":
score[x] += 30
I am looking for 80 to go to 110 and the others to go down by 10 each.
Any help would be greatly appreciated!
else:part to theifstatement withscore[x] -= 10in it?