I have defined these two functions and I need to call income and allowance in function 2 from the first function, basically I want to calculate the finalIncome in function 2 (that line of code is commented). Heres the code:
def personalAllowance():
    income = int(input("Enter your annual salary: £"))
    allowance = 10600
    if(income>100000):
        for i in range (100000, income):
            if(income%2==0):
                allowence = allowence - 0.5
                if(allowence<0):
                    allowence = 0
        print("Personal Allowance = " + str(allowence))
    else:
        print("Personal Allowance = " + str(allowence))
    return (income , allowance)
def incomeTax():
    print("\n")
    #finalIncome = income - allowence
    print(finalIncome)
    taxBill = 0
    if(finalIncome <= 31785):
        taxBill = finalIncome * (20/100)
    elif(finalIncome > 31785 and finalIncome < 150000):
        taxBill = finalIncome * (40/100)
    elif(finalIncome >= 150000):
        taxBill = finalIncome * (45/100)
    print (taxBill)
incomeTax()


