import matplotlib.pyplot as plt # Sample data categories = ['A', 'B', 'C', 'D'] values = [10, 15, 7, 12] # Create a bar plot plt.bar(categories, values) # Add labels and title plt.xlabel('Categories') plt.ylabel('Values') plt.title('Bar Plot of Categories and Values') # Show the plot plt.show() __ __