I'm trying to do the following logic:
bitmap_id = 'HelloWorld'
if 'SLIDE' not in bitmap_id and 'ICON' not in bitmap_id and 'BOT' not in bitmap_id:
print bitmap_id
So if bitmap_id is 'ICON_helloworld', then nothing should be printed.
I'm pretty sure you all agree that it's too long and looks ugly, so I tried to do it as shown below, but it's not working.
if any(s not in bitmap_id for s in ['SLIDE', 'ICON', 'BOT']):
print bitmap_id
What am I doing wrong?
forloop for each string in the table ?