Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What are your favorite code problems to give while interviewing?. Parent comment
x = x + y y = x - y x = x - y
The funny thing, I find, is that in Python you can simply do this:
x, y = 5, 10 x, y = y, x
There are no comments on this comment yet.
The funny thing, I find, is that in Python you can simply do this:
I was asked this question in an interview and I responded that you can do this. His response: "Python is weird."