Replacing data in a list with sublists

You’re still not appending to a list. You’re just replacing the value in quart each time. You’re effectively doing this:

quart = 1
quart = 2
quart = 3
quart = 4
return quart (quart = 4)

You’re overriding the value each time in the loop and then asking for the final value. You want to append that value (or the entire sublist in this case) each time you update the value, because appending will add to a new list rather than replace an existing one.

I also don’t think you’re creating your sublist properly (quart=quart+quart). Each loop is duplicating the previous sublist. You’re effectively doubling the list length with each iteration.

quart = [["A","B","C","D"]]
for rr in range (0,4):
    quart = quart+quart
    print("Loop:",rr)
    print("quart:",quart)

Again, you marked your previous thread as Solved and this seems to be the same issue (or a very similar one). If this is a different issue, then you need to clearly indicate why it’s different. If it’s not, then you need to continue the original thread rather than rehashing the same problem in a new topic.