Question: find the error in the attached python code and rewrite it correctly: marital _ status = input ( are you married? ) print (

find the error in the attached python code and rewrite it correctly:
marital_status= input("are you married?")
print (marital_status)
income=int(input("what is your income?"))
print (income)
if marital_status=='s':
if income>0 and income<11000:
print (income *0.10)
elif income>11001 and income<44725:
print (income *0.12)
elif income>44726 and income<95375:
print (income *0.22)
elif marital_status=='m':
elif income>0 and income<22000:
print (income *0.10)
elif income>22001 and income<89450:
print (income *0.12)
elif income>89451 and income<190750:
print (income *0.22)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!