I'm trying to search an array within the try accept loop and it won't quite work.
startCodeArray = ['c1', 'c2', 'c3', 'c4', 'c4', 'c5']
startPriceArray = [1.50, 3.00, 4.50, 6.00, 8.00]
print('please enter your first locations code \n', startCodeArray, '\n', startPriceArray)
s1c = str(input(''))
while True:
try:
s1c in startcodearray
break
except:
print('please enter a valid code ')