Aug-25-2019, 02:28 PM
You could use str.zfill() function for all your padding property methods, e.g.
and here´s the zfill() function
@property def yy(self): return str(self._year).zfill(4)found this very helpful overview of String methods
and here´s the zfill() function