I have this function.
def creates(n):
output = []
for i in range(1, n+1):
output.append(range(-1, i-1))
return output
I want it to return [[1],[2,1],[3,2,1],[4,3,2,1]] when I print creates(4) without using a reverse function in the code. I know it's possible and I feel like I am using append incorrectly but I don't know where the issue is. Thanks!