I am trying to do a simple calculation but once the user inputs the weight it wont print out the remaining weight left. comes with the error code
unsupported operand type(s) for -: 'str' and 'int'
here is my code. is there something i am missing?
def Massallowance():
person = input("Crew or Specialist? ")
if person== 'Crew':
definedMass = 100
weight = input("Please enter weight: ")
print("Allowance" + weight-definedMass)
elif person== 'Specialist':
definedMass = 150
weight = input("Please enter weight: ")
print("Allowance" + weight-definedMass)