Python newbie trying to do something that worked in Perl but can’t find the Pythonic equivalent.
I have a dictionary:
stock = {‘p’: 1, ‘r’: 2, ’t’: 1}