OILS
/
opy
/
gold
/ genexpr_nested.py
View on Github
|
oilshell.org
11 lines, 5 significant
1
#!/usr/bin/env python2
2
"""
3
genexpr_nested.py
4
"""
5
from __future__ import print_function
6
7
x_ = [1,2,3]
8
y_ = [4,5,6]
9
10
g = ((x,y) for x in x_ for y in y_)
11
print(list(g))