code: def cos_sin_deg(deg):
      
      deg = deg % 360.0
      if deg == 90.0:
          return 0.0, 1.0
      elif deg == 180.0:
          return -1.0, 0
      elif deg == 270.0:
          return 0, -1.0
      rad = math.radians(deg)
      return math.cos(rad), math.sin(rad)
docs: Return the cosine and sin for the given angle
      in degrees, with special-case handling of multiples
      of 90 for perfect right angles