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, 'matplotlib.pyplot.title', 'graph.title', True, 'import matplotlib.pyplot as graph\n'), (11, 'matplotlib.pyplot.pie', 'graph.pie', True, 'import matplotlib.pyplot as graph\n'), (12, 'matplotlib.pyplot.show', 'graph.show', True, 'import matplotlib.pyplot as graph\n')]