code: def diff_bearing(b1, b2):
      '''
      Compute difference between two bearings
      '''
      d = abs(b2 - b1)
      d = 360 - d if d > 180 else d
      return f diff_bearing(b1, b2):
      '''
      Compute difference between two bearings
      '''
      d = abs(b2 - b1)
      d = 360 - d if d > 180 else d
      return d
docs: Compute difference between two bearings