I think this should be range(0, 20), because range does not include the last number. The current for loop is executed 19 times.