| 1 | initial version |
range(0,n-1) goes from 0 to n-2, you should use range(0,n) or range(n).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.