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
Python installs numpy, Matplotlib, SciPy, Seaborn modules to implement FFT algorithm.
install numpy modular 1. First
Python calls the chat robot interface based on the request library. Several methods of request are summarized
Reference website cases :https