End Code Function Python Programming