I that case, you should be able to do `range(1, deg + 1)`