A company XYZ Ltd. records its monthly sales in lakhs as follows:

ICSE Class 10 Robotics & AI PYQ · 2026 Paper · Section B

3(iii)Written · 2026 · Section B · 2026 Paper

A company XYZ Ltd. records its monthly sales in lakhs as follows:

Month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
Sales = [25, 30, 28, 35, 40, 38]

Write a Python program using Matplotlib to:

Show SolutionHide Solution↓
import matplotlib.pyplot as plt

month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
sales = [25, 30, 28, 35, 40, 38]

plt.bar(month, sales)
plt.xlabel("Month")
plt.ylabel("Sales (in lakhs)")
plt.title("XYZ Ltd. Half-Yearly Sales")
plt.show()

Output

A company XYZ Ltd. records its monthly sales in lakhs as follows.ICSE 2026 Robotics & Artificial Intelligence Solved Question Paper.
← Previous questionNext question →

Browse the free Robotics & AI sample bank