Friday, April 25, 2014

A simple function to find the unknown side.

#WRITTEN BY STEVE ATCHISON FOR SHAWNEE COUNTY APRIL 25TH 2014

def uk(known,acres):
    '''
    This functon prints the unknown side 
    when known side and acres are entered.
    example:  uk(1320,20)
    '''
    acres_to_sf = float(acres* 43560)
    unknownside = float(acres_to_sf / known)
   
    print('Unknown Side = %.2f ft' %unknownside)
   

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Biking helps me to cope with life.