Note: I would want j = [] to remain inside the loop Example:
x = ['Page1.pdf','Page2.pdf']
for i in x:
s = i
j = []
j.append(s)
print(j)
My output from print(j):
['Page1.pdf']
['Page2.pdf']
Expected Output from print(j):
['Page1.pdf','Page2.pdf']