I'm trying to print a dictionary nicely. I have this
fruits = {'apple': 100,
'banana': 2,
'mango': 42}
I used print(fruit)
but it just outputs: {'apple': 100, 'banana': 2, 'mango': 42}
Is there a way I can print it like this:
apple 100
banana 2
mango 42