'''listToImage is a short snippet that creates new png files from word lists. used in memory tasks where the experimenter has the option to do half word/half picture stimuli. put the code in a new file directory that will then be populated with the individual image files used for stimuli'''
#bc ┌( ಠ_ಠ)┘
from PIL import Image
data = #list goes here
for i in data:
img = Image.new("RGB", (800, 1280), (255, 255, 255))
img.save((i+ ".png"), "PNG")