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()
[((10, 0, 10, 42), 'matplotlib.pyplot.title', 'graph.title', ({(10, 12, 10, 41): '"""Mathematics Topic Weightage"""'}, {}), "('Mathematics Topic Weightage')", True, 'import matplotlib.pyplot as graph\n'), ((11, 0, 11, 72), 'matplotlib.pyplot.pie', 'graph.pie', (), '', True, 'import matplotlib.pyplot as graph\n'), ((12, 0, 12, 12), 'matplotlib.pyplot.show', 'graph.show', ({}, {}), '()', True, 'import matplotlib.pyplot as graph\n')]