Very easily, change your generation
method to:
for a in range(10):
data.append(myList2[:])
instead of:
for a in range(10):
data.append(myList2)
This is so that each element in data does not contain reference to the same myList2 object. The myList2[:]
creates a copy of the object.
Also, instead of
for i in data:
print(i) #prints list of characters in a not-so-nice format
do:
for i in data:
print(''.join(i)) #prints string