code: def dd2dms(dd):
      
      m, s = divmod(dd * 3600, 60)
      d, m = divmod(m, 60)
      return int(d), int(m), s
docs: Decimal degrees to DMS.
  
      Args:
          dd (float). Decimal degrees.
  
      Return:
          tuple. Degrees, minutes, and seconds.