#try to avoid input function a = int(input()) b = input("male or female :") if b == "male": print(((20/100)*a)+a) elif b == "female": print(((30/100)*a)+a) else: print("Invalid input")
Click the run button. Try to avoid input() function.