I have a list of filenames in python and I would want to construct a set out of all the filenames.
list
set
filelist=[] for filename in file
One general way to construct set in iterative way like this:
aset = {e for e in alist}