Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 67)
67.
How can you check if a given year is a leap year or not?
is_leap(int(input("Enter a year: ")))
check_leap_year(get_year())
year = input("Enter a year: "); print(is_leap_year(year))
leap = leap_year(input("Enter a year: "))
Answer: Option
Explanation:
To check if a given year is a leap year or not, use is_leap(int(input("Enter a year: "))).
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.