End Code Function Python Practice