Code works fine except...

Aahz aahz at pythoncraft.com
Mon May 4 12:15:18 EDT 2009


In article <8d4ec1df-dddb-469a-99a1-695152db7c04 at n4g2000vba.googlegroups.com>,
Ross  <ross.jett at gmail.com> wrote:
>
>def test_round_robin(players, rounds, courts, doubles = False):
>    players = range(players)
>    for week in round_robin(players,rounds,courts):
>	    if doubles == True:
>		    doubles_week = len(week)/2.0
>		    byes = doubles_week - courts

Side note: thou shalt indent four spaces, no more, no fewer

For more info, see PEP 8.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list