End Code Function Python Format Print