HELP please?
Im new to python. I made this code but I keep getting:
subtotal= 'shirts' * 'amount' * 0.20
TypeError: can't multiply sequence by non-int of type 'str'
the code is:
shirts="12.99"
amount=input("H ow many shirts would you like to purchase?")
subtotal= 'shirts' * 'amount' * 0.20
percentage= 'shirts' * 'amount' * 0.20
total= 'subtotal' - 'percentage'
Im new to python. I made this code but I keep getting:
subtotal= 'shirts' * 'amount' * 0.20
TypeError: can't multiply sequence by non-int of type 'str'
the code is:
shirts="12.99"
amount=input("H ow many shirts would you like to purchase?")
subtotal= 'shirts' * 'amount' * 0.20
percentage= 'shirts' * 'amount' * 0.20
total= 'subtotal' - 'percentage'
Comment