Debugging Javatpoint Python Function Definition