In Python, I want to write a multi-line dict in my code. There are a couple of ways one could format it. Here are a few that I could think of:
mydic
Since your keys are strings and since we are talking about readability, I prefer :
mydict = dict( key1 = 1, key2 = 2, key3 = 3, )