lisper
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
1920 ms·
- 10111.▲
- 10112.▲
- 10113.▲
- 10114.▲
- 10115.▲
- 10116.▲
It's a list comprehension with an implicit nested loop: >>> [y for z in [[1,2,3],[4,5,6]] for y in z]
[1, 2, 3, 4, 5, 6]
The error you get is because "planet" is bound by the second FOR clause, so when y - 10117.▲
- 10118.▲
- 10119.▲
- 10120.▲
- 10121.▲
- 10122.▲
- 10123.▲
- 10124.▲
- 10125.▲
- 10126.▲
- 10127.▲
- 10128.▲
- 10129.▲
- 10130.▲
- 10131.▲
- 10132.▲
- 10133.▲
- 10134.▲
- 10135.▲
- 10136.▲
- 10137.▲
- 10138.▲
- 10139.▲
- 10140.▲
More ›