A year is a leap year if it is divisible by 400 or divisible by 4 but not by 100 since every 4th century year is a leap year. The pseudocode can be given as –  Step 1: TAKE INPUT from the user  Step 2: CHECK IF the year is divisible by 400. If yes, then DISPLAY that the year is a leap year and exit.  Step 3: CHECK IF the year is divisible by 4 and not divisible by 100. If yes, then DISPLAY that the year is a leap year and exit.  Step 4: DISPLAY that the year is not a leap year.  The python implementation for the same is –  # Take input from user
year = int(input("Enter a number: "))
if year % 400 == 0:
print(year, 'is a leap year')
elif year % 100 != 0 and year % 4 == 0:
print(year, 'is a leap year')
else:
print(year, 'is not a leap year')
The output of the program is –  Enter a number: 2100  2100 is not a leap year