For exemple, say i have the following code:
a = [[1],[2],[3]]
for c in a: 
    print(c)
    for d in a: 
        print(d)
The current output of it is:
[1]
[1]
[2]
[3]
[2]
[1]
[2]
[3]
[3]
[1]
[2]
[3]
My question is weatherwhether it is possible to modify this code in a pretty way so that the output becamesbecomes like this:
[1]
[2]
[3]
[2]
[3]
[3]
In other words if it is possible, in a 'clean python', to have the inner loop to cover the list from the index the outer loop stopped.
I am new to python, first learned programming in c. I can only think of dumb ways to do it, so could do with some help.