A list holds three objects, each with a name and a quantity.
class Item:
def __init__(self, name, qty):
self.name = name
self.qty = qty
stock = [Item("pen", 0), Item("ink", 4), Item("cap", 2)]
Which of these expressions give the list ['ink', 'cap']? Choose every correct option.
One or more options are correct. Tick all the correct ones: a wrong option costs marks, and a part-right answer earns part of the marks.