KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Write a Python program to plot a bar chart using the Matplotlib library. Your program should:

  1. Import the necessary libraries.
  2. Create a list of categories and their corresponding values.
  3. Plot a bar chart with appropriate labels and a title.

Python Modules

1 Like

Answer

import matplotlib.pyplot as plt
categories = ['A', 'B', 'C', 'D', 'E']
values = [5, 7, 3, 8, 6]
plt.bar(categories, values)
plt.xlabel('Categories')
plt.ylabel('Values')
plt.title('Category-wise Performance Analysis')
plt.show()

Output

In the given diagram, an isosceles ∆ABC is inscribed in a circle with centre O. PQ is a tangent to the circle at C. OM is perpendicular to chord AC and ∠COM = 65°. Find : ICSE Specimen Paper 2025 Robotics & Artificial Intelligence Solved Question Paper.

Answered By

2 Likes


Related Questions