About 604,000 results
Open links in new tab
  1. Check Leap YearPython | GeeksforGeeks

    Feb 22, 2025 · calendar module in Python provides the calendar.isleap(y) function which checks if a given year is a leap year. This built-in function simplifies leap year validation with a single …

  2. Python calendar module | isleap() method - GeeksforGeeks

    Oct 22, 2018 · In Python, calendar.isleap() is a function provided in calendar module for simple text calendars. isleap() method is used to get value True if the year is a leap year, otherwise …

  3. Python Program to Check Leap Year

    Source code to check whether a year entered by user is leap year or not in Python programming with output and explanation...

  4. Determine, count, and list leap years in Python | note.nkmk.me

    Jan 31, 2024 · Use calendar.isleap() to determine if a year is a leap year. The source code for calendar.isleap() is as follows, using the modulo operator % and logical operators and and or. …

  5. Python Program For Leap Year (With Code) - Python Mania

    Yes, you can use this Python program for leap year for any year. Simply pass the desired year as an argument to the is_leap_year() function, and it will return True if it is a leap year and False …

  6. Program to Check Leap Year in Python - ScholarHat

    Jan 19, 2025 · Leap Year Program in Python Using the Calendar Module. The calendar module's isleap () function simplifies leap year determination. import calendar year = 2000if …

  7. Leap Year Program in Python - almabetter.com

    Nov 2, 2024 · Learn how to write a leap year program in Python, logic, and detailed code examples, including functions, user input handling, and the calendar module. A leap year is a …

  8. Python Program to Check Leap Year - Scaler Topics

    Nov 11, 2021 · In the following set of programs, we will be using the isleap() function in the Calendar module of Python, to find whether a given year is a Leap year or not. We will first …

  9. Python Program to Check Leap Year - DEV Community

    Feb 21, 2022 · Have you ever thought how to check if a year is a leap year using Python? Before we get our hands on coding check out this article to get more basic information on Python. …

  10. How to Write a Leap Year Program in Python: A Beginner …

    Apr 21, 2025 · Start with a simple input statement to get the year, then apply your conditions. Print out whether the year is a leap year or not. The Leap Year Program in Python is a classic …

Refresh