import matplotlib.pyplot as plt # Sample data cities = ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Phoenix'] population = [8537673, 39776830, 2716000, 2320268, 1680992] # Create a horizontal bar graph plt.barh(cities, population, color='skyblue') # Label the axes and add a title plt.xlabel('Population') plt.ylabel('City') plt.title('Population of Major U.S. Cities') # Display the graph plt.show()