Twitter threads unrolled.
A comparison of many possible Python implementations of the sign function.
Feel like exercising your brain? Have a go at one of the problems I have for you.