job_IDs = ['13453', '123', '563456']
memory_used = [30, 150.54, 20.6]
memory_units = ['MB', 'GB', 'MB']
width = max(map(len, job_IDs)) + 1 # +1 for ':'
for jid, mem, unit in zip(job_IDs, memory_used, memory_units):
print("Job {jid:{width}} {part[0]:>3}{part[1]:1}{part[2]:<2} {unit:2}".format(
jid=jid+':', width=width, part=str(mem).partition('.'), unit=unit))
am9iX0lEcyA9IFsnMTM0NTMnLCAnMTIzJywgJzU2MzQ1NiddCm1lbW9yeV91c2VkID0gWzMwLCAxNTAuNTQsIDIwLjZdCm1lbW9yeV91bml0cyA9IFsnTUInLCAnR0InLCAnTUInXQoKd2lkdGggPSBtYXgobWFwKGxlbiwgam9iX0lEcykpICsgMSAjICsxIGZvciAnOicKZm9yIGppZCwgbWVtLCB1bml0IGluIHppcChqb2JfSURzLCBtZW1vcnlfdXNlZCwgbWVtb3J5X3VuaXRzKToKICAgIHByaW50KCJKb2Ige2ppZDp7d2lkdGh9fSB7cGFydFswXTo+M317cGFydFsxXToxfXtwYXJ0WzJdOjwyfSB7dW5pdDoyfSIuZm9ybWF0KAogICAgICAgIGppZD1qaWQrJzonLCB3aWR0aD13aWR0aCwgcGFydD1zdHIobWVtKS5wYXJ0aXRpb24oJy4nKSwgdW5pdD11bml0KSkK