Q. The score of a team in 5 IPL matches is available to you. Write a program to create a pie chart from this data, showing the last match's performance as a wedge.
Answer :-
import matplotlib.pyplot as plt import numpy as np X = [ "Path", "Walla", "Portal", "Express","Python"] a = [52, 34, 89, 52, 80] b = [ 64, 48, 56 , 32, 40] c = [ 78, 68, 25 , 50, 45 ] d = [ 94 , 76, 88 , 54, 56 ] e = [ 48, 56, 74, 32, 41 ] plt.title("IPL last match's performance as a wedge.") plt.pie(e, labels = X) plt. show()
Output :-
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )