Python Programming Function Graphical Demonstration