Exponential arrival distribution in Python

2012-11-28 Thread Ricky
. Cheers, Ricky -- http://mail.python.org/mailman/listinfo/python-list

Re: List question

2008-03-21 Thread Ricky Zhou
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&#

Re: Newbie: How to pass a dictionary to a function?

2008-04-07 Thread Ricky Zhou
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/