Javascript Leap Year Function Python Format Print Decimal Places