Question: I have a dictionary with `key1=v1l1, key2=val2, key3=val3, key4=val4`. This dictionary is sorted as `sortedlist = sorted(dict_m.items(), key=lambda x: x[1])`.

Now I am able to print it using

```
for i in sortlist:
    print ('{:11s}'.format(i[0]) ,  ":", i[1])

```

And my output is ;

```
key1=v1l1
key2=val2 
key3=val3
key4=val4

```

What I have to do to get an output in two columns like

```
key1=v1l1  key2=val2 
key3=val3  key4=val4

```

Answer: 
You could something as follows.

```
for x,y in zip(sortedlist[0::2], sortedlist[1::2]):
    print("{0} {1}".format(x, y))

```
Try this:

```
for i in [sortedlist[i:i+2] for i in range(0,len(sortedlist), 2)]:
    print(f"{i[0][0]}={i[0][1]}\t{i[1][0]}={i[1][1]}")

```