¡@

Home 

python Programming Glossary: yset

Understanding nested list comprehension

http://stackoverflow.com/questions/8049798/understanding-nested-list-comprehension

I may generalize I guess exp2 exp1 for x in xSet for y in ySet form can be translated to the following. I hope I'm correct.. the following. I hope I'm correct on this result for y in ySet innerResult for x in xSet innerResult.append exp1 exp2Result.. exp2Result For simpler case exp1 for x in xSet for y in ySet is equal to result for x in xSet for y in ySet result.append..