Ask Your Question

Revision history [back]

range(0,n-1) goes from 0 to n-2, you should use range(0,n) or range(n).