What would be the best way to increment a value that contains leading zeroes? For example, I\'d like to increment \"00000001\". However, it should be noted that the number of
int('00000001') + 1
if you want the leading zeroes back:
"%08g" % (int('000000001') + 1)