Convert a Python dictionary to a list
Calling list() on a Python dictionary gives you its keys. For a stock list, use values() to get the quantities or items() to keep each product with its quantity.
Get the keys, values, or pairs
Each item from list(stock.items()) is a two-element tuple. The product name comes first and the quantity comes second.
stock = {"pen": 3, "paper": 7, "eraser": 3}
print(list(stock))
print(list(stock.values()))
print(list(stock.items()))
['pen', 'paper', 'eraser']
[3, 7, 3]
[('pen', 3), ('paper', 7), ('eraser', 3)]
Sort by product name or quantity
All three lists follow the order in which the keys were first added. The quantities can repeat, as 3 does here. Use sorted(stock) for product names in alphabetical order or sorted(stock.items(), key=lambda item: item[1]) to sort the pairs by quantity. See the Python dictionary reference.
To use a spreadsheet column in Python, export it as CSV. Open the file in the ArrayCat converter, select your column, and choose Python list as the output.