def report (vv, pack_voltage, pack_current, pack_health, pack_charge, timestamp): return ( "\n".join([ "Cell {:2d} = {:.3f}\t\t\tCell {:2d} = {:.3f}".format((i+1), vv[i], (i+49), vv[i+48]) for i in range(48)]) + "\nCell Voltage Sum = {:.2f}".format(sum(vv)) + "\nPack Voltage = {:.2f} V" .format(pack_voltage) + "\nPack Current = {:.2f} A" .format(pack_current) + "\nState of Health = {:.2f} %" .format(pack_health) + "\nState of Charge = {:.2f} %" .format(pack_charge) + "\nTime = {}" .format(timestamp) + "\n")