+ 1
How to find a leap year in Python??
#My Code def Calendar (year): if n/int(4): print ("True") elif n/int(100): print ("False") elif n/int(400): print ("True") n = int(input("Enter the year:")) Calendar (n) "QUESTION: To find a leap year.. The year can be evenly divisible by 4 is leap year.. The year can be evenly divisible by 100 is Not a leap year.. The year is also evenly divisible by 400 is a leap year.. Note: The output should in Boolean True or False.. If it is leap year it should print True else False "
2 Respuestas
+ 3
https://code.sololearn.com/c795F0UI7R6W/?ref=app
Hope it helps!!
+ 1
Thanks bro.. It's helped.