Why doesn't Python have a sign function?
stackoverflow.com