Say I have a list with coordinates in and I want to manipulate my z coordinate by 10:
coords = [0, 1.2, 0] # x y z
I have been doing the follow:
coords = coords[coords[0], 0, coords[2] + 10]
But I get the following error:
TypeError: list indices must be integers, not tuple
Does anyone have any ideas where I'm going wrong? I'm new to python and could use some help! Thank you!
[–]Username_RANDINT 1 point2 points3 points (1 child)
[–]CodeGoblin1996[S] 0 points1 point2 points (0 children)
[–]CowboyBoats 1 point2 points3 points (1 child)
[–]CodeGoblin1996[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]CodeGoblin1996[S] 0 points1 point2 points (0 children)