Program - function to check leap year


Topic: Program - function to check leap year

Solution

def check_leap_year(year: int):
    if not year%4:
        print('Leap Year')
    else:
        print('Not a leap year')



List all Python Programs