Code
import matplotlib.pyplot as plt
# Sample data
x = [1, 2, 3, 4, 5]
y = [10, 12, 8, 15, 10]
# Create the plot
plt.plot(x, y, marker='o', color='blue', linestyle='-')
# Add title and labels
plt.title('Sample Line Chart')
plt.xlabel('X Axis')
plt.ylabel('Y Axis')
# Show grid
plt.grid(True)
# Display the plot
plt.show()
