On Jan 10, 5:32 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote: > > l = [] > > l.append(man) > > l.append(woman) > > > # Print the state. > > for item in l: > > print item.state() > > Small, off-topic nitpick: > please don't use "l" (lower-case el) as a variable name. > > >Fromhttp://www.python.org/dev/peps/pep-0008/: > > "Naming Conventions > > Names to Avoid > > Never use the characters `l' (lowercase letter el), `O' (uppercase > letter oh), or `I' (uppercase letter eye) as single character variable > names. > > In some fonts, these characters are indistinguishable from the numerals > one and zero. When tempted to use `l', use `L' instead."
Thanks for the PEP, Steven. -N -- http://mail.python.org/mailman/listinfo/python-list