I have a code that has somebody input one of the first five elements on the periodic table and I need a way to say if the input is not in the list. I have this so far but it says it is wrong every time (Work is the input variable):
if (work is not 'H','He','Li','Be',"B"):
print ("That is not in the list of elements. Try again.")