diff --git a/EM9CoR/dvvqnm.py b/EM9CoR/dvvqnm.py new file mode 100644 index 00000000..e6438fcb --- /dev/null +++ b/EM9CoR/dvvqnm.py @@ -0,0 +1,5 @@ +is_leap_year = lambda year: (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0) +# takes the input from user +year = int(input("Enter a year: ")) +if is_leap_year(year): print(year, " is a leap year") +else: print(year, "is not a leap year.") \ No newline at end of file