21 Mar
2003
21 Mar
'03
9:31 p.m.
[ Michael Long]
I changed line 182 to read:
if groups == entry.Group:
and it seems to work. I still don't understand why the "in" operator does not work as expected.
IDLE 0.8 -- press F1 for help
gg = ['a','b'] aa = 'this is a test' print aa in gg 0 print gg in aa Traceback (most recent call last): File "<pyshell#3>", line 1, in ? print gg in aa TypeError: 'in <string>' requires character as left operand
You are mixing and matching data types in a way that does not work Cheers, Tom P