Given a year , Judge whether this year is a leap year .
When one of the following conditions is satisfied , This year is a leap year :
Input contains an integer y, Represents the current year .
Output one line , If a given year is a leap year , The output yes, Otherwise output no.
explain : When the question specifies that you output a string as the result ( For example, this topic yes perhaps no, You need to strictly follow the case given in the test , Wrong case will not score .
n = int(input())
if n % 4 == 0 and n % 100 != 0:
print("yes")
elif n % 400 == 0:
print("yes")
else:
print("no")
I don't seem to have any knowledge , If you have not understand , Welcome to ask questions in the comment area
install numpy modular 1. First
Reference website cases :https