I have the following dictionary:
dic = {
'Cohen' : 'Calvino' 'Evertt' 'Borges',
'Larry' : 'The Bible',
'Volanski' : 'Phone Book'
}
for k in dic.keys():
print (k, '\t')
for v in dic.keys():
print (dic[v], ' ')
This is an ugly result:
Volanski
Phone Book
CalvinoEverttBorges
The Bible
Cohen
Phone Book
CalvinoEverttBorges
The Bible
Larry
Phone Book
CalvinoEverttBorges
The Bible
This is how I wanted the result to look like this:
Cohen Larry Volanski
Calvino The Bible Phone Book
Evertt
Borgest
(only tab delimiter which I failed to show here)
source
share