So I have a list named "enemy_pos". Inside that, I have another 2 lists. When I try to change a number from one of that 2 lists it says "list index out of range"
Here is my code:
enemy_pos = [[0, -2, -12], [0, -1, -12]]
enemy_speed = 0.2
def move():
for i in range(2):
enemy_pos[[i][1]] -= enemy_speed
enemy_pos[[i][1]]?enemy_pos[i][1]enemy_pos[[i][1]]even this is right syntax.Examplea=[1,2,3,4,5];a[[1,2,3][0]]--->2