PythonForDataAnalysis icon indicating copy to clipboard operation
PythonForDataAnalysis copied to clipboard

王秀妤

Open roberthsu2003 opened this issue 6 years ago • 1 comments

老師您好:我想試著用Python寫寫以下的資訊,但不知該用哪些函數搭配使用!麻煩老師指點一下~感恩!! 租賃專法對「委託代管業代管」或「出租給包租業轉租」一年以上的個人房東祭出所得稅減免優惠,每個月資金6000以下不用繳稅;月租金6000元到兩萬元的部分,必要費用減除率為53%;月租金超過兩萬元部分,全額納入所得稅。

roberthsu2003 avatar May 10 '20 04:05 roberthsu2003

老師您好:我想試著用Python寫寫以下的資訊,但不知該用哪些函數搭配使用!麻煩老師指點一下~感恩!! 租賃專法對「委託代管業代管」或「出租給包租業轉租」一年以上的個人房東祭出所得稅減免優惠,每個月資金6000以下不用繳稅;月租金6000元到兩萬元的部分,必要費用減除率為53%;月租金超過兩萬元部分,全額納入所得稅。

income = int(input('請輸入房租收入:'));

if income <= 6000: tax = income * 0; elif income <= 20000: tax = income - income*0.53; else: tax = income;

print("納入所得稅為",tax);

roberthsu2003 avatar May 10 '20 04:05 roberthsu2003