Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3c4e3a

Browse files
Create solution3.py
1 parent f856f94 commit f3c4e3a

File tree

1 file changed

+5
-0
lines changed
  • Problem Solving in Python/01_Basic Problems/Solutions

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
year = int(input("Enter the year: "))
2+
if (year%4 == 0 and year % 100 != 0) or (year % 400 == 0):
3+
print(year, "is a Leap Year")
4+
else:
5+
print(year, "is not a Leap Year")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /