ProductID = {}
#Would recommend just "69" not "6969" but you do you man.
ProductID[6969] = "Meme"
print(ProductID)
#Error Handling in case somebody does a funny >:P
try:
#Making the input an integer
buy = int(input("What would you like to buy? "))
print("Bought:", "\"" + ProductID[buy] + "\"", "ID:", buy)
except ValueError:
print("The ProductID should be int(1234) not string(\"Hello World\")")
except KeyError:
print("The", buy, "ProductID doesn't exist u dumb. I mean I literally printed it for u >:(")
I added some mean stuff, you can remove it if you want 8)
I know this won't really answer your question, but hopefully someone can elaborate.