79394079

Date: 2025-01-28 14:03:02
Score: 1
Natty:
Report link

My approach is to use the zfill function to zero fill to left for a base 36 number of length 5, e.g.:

np.base_repr(x, 36).lower().zfill(5)

I also want the result in lower case as it will form part of a Kubernetes pod name, for consistency with conventions, hence I added .lower().

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MurrayData