from matplotlib import pyplot as plt
fruit = {"apple":30, "mango":45, "banana":10}
names = list(fruit.keys())
quantity=list(fruit.values())
print(names, quantity)
plt.bar(names, quantity)
plt.show()
ZnJvbSBtYXRwbG90bGliIGltcG9ydCBweXBsb3QgYXMgcGx0CmZydWl0ID0geyJhcHBsZSI6MzAsICJtYW5nbyI6NDUsICJiYW5hbmEiOjEwfQpuYW1lcyA9IGxpc3QoZnJ1aXQua2V5cygpKQpxdWFudGl0eT1saXN0KGZydWl0LnZhbHVlcygpKQpwcmludChuYW1lcywgcXVhbnRpdHkpCnBsdC5iYXIobmFtZXMsIHF1YW50aXR5KQpwbHQuc2hvdygp