Exemplo n.º 1
0
def main():
    miles = 0
    #use nested ifs to call the next function if the function being called is used and not set to invalid
    if(callmiles.inputMiles()):
        if(callFah.inputFahrenheit()):
            if(callGallons.inputGallons()):
                if(callPounds.inputPounds()):
                    callInches.inputInches()
Exemplo n.º 2
0
def main():
    miles = 0
    #use nested ifs to call the next function if the function being called is used and not set to invalid
    if callmiles.inputMiles():
        print('Miles is', callmiles.milesToKm(miles))