The order of for loops in the understanding of a double list is the same order you would use with nested loops:
[os.path.getsize(f) for i in conversion for f in glob.glob(i)]
This is a bit confusing because you expect the inner loop to be more βinnerβ, but as soon as you realize that this is the same order as the nested loop, everything is simple :)
source share