-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleap yr.py
More file actions
26 lines (20 loc) · 792 Bytes
/
leap yr.py
File metadata and controls
26 lines (20 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 15 16:47:43 2022
@author: 19bit41
"""
print("\n\n\n\t\t\t\t\t LEAP YEAR CHECKING ")
print("\t\t\t\t\t ------------------ ")
while True:
def ly(yr):
if(yr%100 !=0 and yr%4==0 and yr%400 !=0):
print("\n\t\t\t\t\t "+str(yr)+" is a Leap year.")
else:
print ("\n\t\t\t\t\t "+str(yr)+" is not a Leap year.")
y=int(input("\n\t\t\t\t\t Enter a year : "))
ly(y)
if input("\n\n\t\t\t\t\t Do you want to continue? : ")=='y':
print("\n\n\n\t-------------------------------------------------------------------------------")
else:
print("\n\n\n\t-------------------------------------------------------------------------------")
break