check if list contains only one value python code example
Example: python check if list contains value
if value in list:
#do stuff
#Also to check if it doesn't contain
if value not in list:
#do stuff
if value in list:
#do stuff
#Also to check if it doesn't contain
if value not in list:
#do stuff