Store the available candies in a list
candies = [“Snickers”, “Kit Kat”, “Sour Patch Kids”, “Juicy Fruit”, “Sweedish Fish”]
Print a welcome message
print(“Welcome to the candy shop!”)
Ask the user what they would like to buy
candy = input(“What candy would you like to buy? “)
Check if the candy is in the list of available candies
if candy in candies:
# If the candy is available, print a message saying it’s in stock
print(“{} is in stock!”.format(candy))
else:
# If the candy is not available, print a message saying it’s out of stock
print(“Sorry, we’re out of {}”.format(candy))