Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rectangletangle
on Oct 28, 2019
|
parent
|
context
|
favorite
| on:
Ask HN: What is the most beautiful piece of code y...
Transposing a matrix in Python is pretty neat.
>>>list(zip(*[(1, 2, 3), (4, 5, 6), (7, 8, 9)])) [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: