alex-
searching Neon…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
6 ms·
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
- 7.▲
My favorite unpacking snippet is rotating a matrix >>> matrix = [(1,2,3),(4,5,6),(7,8,9)] >>> list(zip(*matrix)) [(1, 4, 7), (2, 5, 8), (3, 6, 9)] Not as readable as a real maths library, but pretty cool and educational. T - 8.▲
- 9.▲
- 10.▲
- 11.▲
- 12.▲
- 13.▲
- 14.▲
- 15.▲
- 16.▲
- 17.▲
- 18.▲
- 19.▲
- 20.▲
- 21.▲
- 22.▲
- 23.▲
- 24.▲
- 25.▲
- 26.▲
- 27.▲
- 28.▲
- 29.▲
- 30.▲
More ›