You didn't indicate the input and the function appears to be not finished to me however in the given example when your input parameter year is under 1900 (In the second line of the function) at that point the function will not print anything.
def is_leap(year):
if year >=1900:
if year%4==0:
if year%100==0:
if year%400==0:
return True
else:
return False
else:
return True
else:
return False
return False
year = input()
print(is_leap(year))
Want to learn python to get expertise in the concepts of python? Join python certification course and get certified
For more details, do check out the below video tutorial...