Javascript Leap Year Function Python Format Printing