I have a dictionary with 10 elements like this
teams={'Manchester United':50, 'Liverpool': 70, 'Barcelona': 100, 'Real Madrid':90, 'Arsenal':30, 'Atletico':50}
Also I have another dictionary like this:
leagues={'England':['Manchester United', 'Liverpool', 'Arsenal'], 'Spain':['Barcelona', 'Real Madrid', 'Atletico']}
I only want to plot the graph of the English teams('Manchester United', 'Liverpool', 'Arsenal') How do I do it?
This what I have written in my code so far
import matplotlib.pyplot as plt
plt.bar(*zip(*teams.items()))
plt.show()