code: def degrees_to_dms(degrees):
      '''return a degrees:minutes:seconds string'''
      deg = int(degrees)
      min = int((degrees - deg)*60)
      sec = ((degrees - deg) - (min/60.0))*60*60
      return u'%d\u00b0%02u\'%05.2f"' % (deg, abs(min), abs(sec)f degrees_to_dms(degrees):
      '''return a degrees:minutes:seconds string'''
      deg = int(degrees)
      min = int((degrees - deg)*60)
      sec = ((degrees - deg) - (min/60.0))*60*60
      return u'%d\u00b0%02u\'%05.2f"' % (deg, abs(min), abs(sec))
docs: return a degrees:minutes:seconds string