For all discontinued products (i.e. discontinued = 1):
Print the product_id on one line
On another line print their product_category together with their product_description formatted as "product_category - product_description"
A blank line should be printed between successive products
Notes:
You MUST use a loop and a conditional statement.
Hardcoding the answer (i.e. manually computing the answers) will result in no mark for this question. The answer must be "programmed" using a loop and a conditional statement.
for product in products:
if product['discontinued'] == 1:
print(product['product_id'])
print('{} - {}'.format(product['product_category'], product['product_description']))
print()