PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'''
https://www.sololearn.com/Discuss/3100022
how-to-find-leap-year-by-using-python
'''
y = 2022 #int(input())
if not y%4==0:
print("It is a common year")
elif not y%100==0:
print("It is a leap year")
elif not y%400==0:
print("It is a common year")
else:
print("It is a leap year")
'''
Leap year
https://en.wikipedia.org/wiki/Leap_year
'''
# Keep learning & happy coding :D
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run