Syntax of 'in' : searching a list for a string

MarieR robichon at esrf.fr
Mon Mar 22 05:02:51 EST 2004


Hi,

Sorry for my newbie question:

I want to check whether the string 'Remove' is present in a list 'supportList',
but if I do 

if ('Remove') in supportList: 

or 

if 'Remove' in supportList:

I get the error message

'in ' requires character as left operand.

Thanks in advance for your help,

Marie



More information about the Python-list mailing list