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

MarieR robichon at
Mon Mar 22 11:02:51 CET 2004


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: 


if 'Remove' in supportList:

I get the error message

'in ' requires character as left operand.

Thanks in advance for your help,


More information about the Python-list mailing list