This is practice code of making an invoice containing different commodities where GST is different for each one of the 4 types of pricing of products.
product = input('name product')
price = input('give price')
if product == 'footwear':
if price <= 500:
x = 5%
if (product == 'footwear'):
if price > 500:
x = 18%
if product == 'apparels':
if price <= 1000:
x = 5%
if product == 'apparels':
if price <= 1000:
x = 12%
print('item:', product)
print('price:', price)
print('GST:', price * x)
print('total:', (price * x) + price)
I am just learning, but I don't know why it is showing "Expected expression".