I'm new to Python, and I was wondering if there was a concise way of checking the value to see if it is one of the values ββin the list, similar to the SQL WHERE clause. Sorry if this is the main question.
MsUpdate.UpdateClassificationTitle in ( 'Critical Updates', 'Feature Packs', 'Security Updates', 'Tools', 'Update Rollups', 'Updates', )
ie, I want to write:
if MsUpdate.UpdateClassificationTitle in ( 'Critical Updates', 'Feature Packs', 'Security Updates', 'Tools', 'Update Rollups', 'Updates' ): then_do_something()
source share