result = \'\' for key in fields: result += key.ljust(25) for ind, value in enumerate(processed_data): result += value[key].center(15