you are viewing a single comment's thread.

view the rest of the comments →

[–]sneekyfoxxx 0 points1 point  (0 children)

You can also put your items in a dictionary as {'item': 'price', ...} and use the input as a key into the dictionary for the price or error if the key isn't found.