Javascript End A Function Python Format Integer Leading