Write a Python program to check if the input Year is Leap Year or not Leap Year.
IDE: Visual Studio Code ( VSC ). Present: go2collage.
Download hole Program / Project code, by clicking following link:
Programming Code:
# Basic Python Program
# Find Leap Year
year = int(input("Enter any Year: "))
if year % 4 == 0: # by using year % 4, check Leap Year
print(year," is Leap Year.")
else: # Otherwise not Leap Year
print(year," is not Leap Year.")
Output:
0 Comments