How do I print out the dictionary lists like this?:
Tino Black
Alex Blue
Meow Red
Woof White
I want the left column to be the name and right column to be colours for each name.
Here are my codes:
ask = input("Name and colour: ")
colourList = {}
while ask:
name, colour = ask.split()
colourList[name] = colour
ask = input("Name and colour: ")
print(colourList)