Advent of code - Day 2

Objective Given a series of navigation directions find the final position of a submarine Part 1 To solve this we define a navigate function that adjusts the location of the submarine. def navigate(