End Code Function Python Examples