All in stock

Write all_in_stock(quantities) that returns True if every quantity in the list is greater than zero, and False if any is zero or negative. An empty list counts as all in stock.

all_in_stock([3, 1, 5])  ->  True
all_in_stock([3, 0, 5])  ->  False
all_in_stock([])         ->  True

The point is to practise all with a loop inside the brackets.

def all_in_stock(quantities):
    ...