import matplotlib.pyplot as graph

subject = ["Probability", "Calculas", "Discrete Mathematics", "Adv Engineering Mathematics", 
"Linear Algebra", "Cryptography"]

weightage = [250,900,850,1200,290,345]

seperator = [0.05,0,0,0,0.05,0.05]

graph.title("Mathematics Topic Weightage")
graph.pie(weightage,labels=subject,autopct="%0.1f%%", explode=seperator)
graph.show()
[((240, 282), 'matplotlib.pyplot.title', 'graph.title', (['"""Mathematics Topic Weightage"""'], {}), "('Mathematics Topic Weightage')\n", (251, 282), True, 'import matplotlib.pyplot as graph\n'), ((283, 357), 'matplotlib.pyplot.pie', 'graph.pie', (['weightage'], {'labels': 'subject', 'autopct': '"""%0.1f%%"""', 'explode': 'seperator'}), "(weightage, labels=subject, autopct='%0.1f%%', explode=seperator)\n", (292, 357), True, 'import matplotlib.pyplot as graph\n'), ((356, 368), 'matplotlib.pyplot.show', 'graph.show', ([], {}), '()\n', (366, 368), True, 'import matplotlib.pyplot as graph\n')]