I have a dictionary with keys and values as shown below.
from datetime import datetime
dic = {'pack1':'stage1','pack2':'stage2','pack3':'stage3','pack4':'stage4'}
I want to print the keys and their corresponding values in ordered manner in new line, like
Update at 2018-09-18 09:58:03.263575
**Delivery** **State** 'pack1' 'stage1' 'pack2' 'stage2' 'pack3' 'stage3' 'pack4' 'stage4'
The code I tried is given below
print("Update at %s\nDelivery\t\t\t\t\t\t\tState \n{}\t\t\t{}".format({key for key in dic.keys()}, {val for val in dic.values()}) %datetime.now())
But it give the output as
Update at 2018-09-18 09:58:03.263575
**Delivery** **State** set(['pack4', 'pack1', 'pack2', 'pack3']) set(['stage1', 'stage2', 'stage3', 'stage4'])
The values doesn't correspond to their keys, and the output is given in a single line as a set of lists. How to format the output as my requirement? (There are whitespaces between 'delivery' and State but stack overflow doesn't show them)