import matplotlib.pyplot as plt
# Data
x = [3, 4, 5, 6, 7, 8, 9, 10, 12]
y = [0.18, 0.4, 1.1, 1.08, 1.6, 0.54, 0.8, 1.2]
# Create a histogram
plt.bar(x, y, width=0.8, color='skyblue', edgecolor='black')
# Title and labels
plt.title('Histogram of Given Data')
plt.xlabel('X Values')
plt.ylabel('Y Values')
# Display the plot
plt.show()