I have a for loop like this:
for i in conversion:
for f in glob.glob(i):
print(os.path.getsize(f))
I want to convert this into list comprehension:
Tried this:
[os.path.getsize(f) for f in glob.glob(i) for i in conversion]
but didn't work.