def build_name_function(max_int):
 max_int += 1e-08
 pad_length = int(math.ceil(math.log10(max_int)))
 def name_function(i):
  return str(i).zfill(pad_length)
 return name_function

def build_name_function ( max_int ) : max_int += 1e-08 pad_length = int ( math . ceil ( math . log10 ( max_int ) ) ) def name_function ( i ) : return str ( i ) . zfill ( pad_length ) return name_function
returns a function that receives a single integer and returns it as a string padded by enough zero characters to align with maximum possible integer .