Very new to this so thank you for your patience.
This is my situation, I have a set of start co-ordinates (3, 12 = the first being an x axis value and the second y axis) and a list of directions i.e. S, S, N, E, W. With every iteration of the directions I need to add or subtract them from the start co-ordinates to plot a route and eventually lead me to the final co-ordinates.
I have converted the N,E,S,W into numerical values i.e. (N becomes [0, 1] and S becomes [0, -1]. As the N and S directions would not affect the X axis hence the first value being 0. E would be [1, 0] and W [-1, 0].
My question is, if the first direction is N [0, 1] how to I add this to the start co-ordinates of [3, 12] so the answer is [3, 13] and continue in this manner with every subsequent direction?
I would also like to print the new co-ordinates after every direction has been added.
This is how i have begun, however i think i am getting mixed up with list, tuple and dictionary formatting.
start = [3, 12]
coordinates = dict({'N':[0,1], 'E':[1:0], 'S':[0:-1]. 'W':[-1:0]})
directions = ('S', 'S', 'W', 'S', 'S', 'S', 'E', 'E', 'E')
Any help would be much appreciated.