@@ -0,0 +1,1453 @@
+#!/usr/bin/env python3%0A%0A%22%22%22A simple script for converting between Decimal Degrees and Degrees Minutes Seconds, and vice versa.%22%22%22%0A%0A__author__ = %22Patrick Guelcher%22%0A__copyright__ = %22(C) 2016 Patrick Guelcher%22%0A__license__ = %22MIT%22%0A__version__ = %221.0%22%0A%0Adef main():%0A    convert_from = input(%22Please input what you are converting from (DD or DMS): %22)%0A%0A    #Convert from Decimal Degrees (DD)%0A    if convert_from.upper() == %22DD%22:%0A        user_entry = input(%22Enter the DD (XX.XXXX): %22)%0A        dd = %5Bint(i) for i in user_entry.split(%22.%22) %5D%0A%0A        decimal = %220.%22 + str(dd%5B1%5D) #Convert the second number back into a decimal number%0A        d = int(dd%5B0%5D)%0A        m = int((float(user_entry) - de) * 60)%0A        s = round((float(user_entry) - d - (int(m)/60)) * 3600, 2)%0A%0A        print(%22The Degrees Minutes Seconds are: %22 + str(d) + %22%C2%B0 %22 + str(abs(m)) + %22' %22 + str(abs(s)) + %22%5C%22%22)%0A%0A    #Convert from Degrees Minutes Seconds (DMS)%0A    if convert_from.upper() == %22DMS%22:%0A        user_entry = input(%22Enter the DMS (XX XX XX): %22)%0A        dms = %5Bint(i) for i in user_entry.split(%22 %22) %5D%0A%0A        d = dms%5B0%5D%0A        m = abs(dms%5B1%5D/60)%0A        s = abs(dms%5B2%5D/3600)%0A        new_decimal = m + s%0A%0A        print(%22The Decimal Degrees are: %22 + str(d) + str(new_decimal)%5B1:%5D)%0A%0A    #Restart if not DD or DMS%0A    if convert_from.upper() != %22DD%22 and convert_from.upper() != %22DMS%22:%0A        print(%22Invalid entry. Please try again.%22)%0A        main()%0A%0Aif __name__ == %22__main__%22:%0A    main()%0A

Add degrees converter