.
Cheers,
Ricky
--
http://mail.python.org/mailman/listinfo/python-list
alist.append(f)
>
> for i in alist:
> print i
>
> two
> one and two
> one two
>
>
> why is it printing the first "two"?
Look at the this line:
if 'one' and 'two' in f:
You're basically saying:
if ('one
On 2008-04-07 08:54:09 PM, BonusOnus wrote:
> How do I pass a dictionary to a function as an argument?
>
>
> # Say I have a function foo...
> def foo (arg=[]):
Try:
def foo(arg={}):
Thanks,
Ricky
pgpXEZLwP4mLj.pgp
Description: PGP signature
--
http://mail.python.org/mailman/