Python: rise over run slope calculator that outputs to feet and inches : I'm a first term Computer Science student, I'm attempting to write a rise over run calculator that can function as a construction calculator. Recieving input in feet and inches and outputs the slope in feet and inches to the nearest 1/16th.

what I have now can take an input in inches converted into a decimal and output the slope in the same format. 

import sys
while (1):
    print ("Enter the rise and run in inches to calculate slope.")
    a = (input("First measurement is:  "))
    if (a == "stop"):
        print ("goodbye")
        sys.exit()
    a=  float (a)**2  
    b = float (input("second measurement is:  "))**2
    c = (float (a) + float (b))**(1/2)
    print ("Slope is:", c,("inches"))

