a=int(input("Enter your salary:"))
s=str(input("Enter your sex(Male/Female):"))
if(s=="Male"):
    print("Special salary due to diwali:Rs. ",a+(a*(5/100)))
if(s=="Female"):
    print("Special salary due to diwali:Rs. ",a+(a*(10/100)))
if(s=="Male" and a<10000):
    print("Also based on your salary:Rs. ",a+(a*(7/100)))
if(s=="Female" and a<10000):
    print("Also based on your salary:Rs. ",a+(a*(12/100)))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: