Feb-27-2021, 12:10 AM
Like buran indicated, python dictionaries make things like this incredibly easy.
items = { 'apples': 1.99, 'bananas': 299, 'oranges': 399 } item_pull = input ('What item would you like to see the price of? : ') if item_pull in items : print (f'The price of {item_pull} is ${items [item_pull]}.')