I've got a dictionary like this:
mapping = {
'a':['_________','_________','_________'],
'b':['---------','---------','---------'],
'c':['=========','=========','========='],
}
And I need to print all the first items in the values lists printed on the first line, all the second values on the second line and all the third values on the third line. Like this:
_________---------=========
_________---------=========
_________---------=========
All items are the same amount of characters long and all lists have the same number of items.
I have a list of letters which gets the keys in the right order, I'm just not sure how to print the values. I can print all the first items with:
counter = 0
for l in letters:
for value in mapping[l]:
print(value[counter],end="")
How would I go about creating the output above?