Whats wrong here


#1



income = float(input("Enter Your amount of income here ---->:"))
print("The income you provided is -->", income)
user_config = str(input("Is this number correct? Enter y or n : "))
if user_config.upper() == "Y":
    
        print ("Sucsesful, we shall proceed . ")    
else :
        print ("Craaashhh restart the program and re-enter the value")
        exit()
#
#
tax = 0.0
if income <= 50000:
    tax = tax
    print("Low income , no need to tax   " , tax )
elif income >= 50000 and income <= 75000:
    tax = (tax + .05) * income
    print ("5 % tax calculated :   " , tax )
elif income >= 75000 and income <= 100000:
    tax = (tax +.07) * income
    print ("7 % tax calculated :   " , tax )
else: 
    income > 100000
    tax = (tax + 0.1) * income
    print ("10 % tax calculated :   " , tax)


#2

works fine in python3, what error message do you get?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.