I have some strings that I'm printing out and I want to align them in order to make them appear neat.
colours = ["Red", "Green", "Yellow"]
quantities = {"Red" : 6, "Green" : 4, "Yellow" : 9
Here is how I am currently printing them out:
for colour in colours:
print("{}: {}".format(colours[colour], quantities[colour]))
However they come out looking like this:
Red: 6
Green: 4
Yellow: 9
When I would like them to come out like:
Red: 6
Green: 4
Yellow: 9