Answers for "leap"

0

leap

year = int(input("Enter Year:"))
if year % 4 == 0:
    if year % 100 == 0:
        if year % 400 == 0:
            print("Yes, {} is Leap Year".format(year))
        else:
            print("No, {} is Leap Year".format(year))
    else:
        print("No, {} is Leap Year".format(year))
else:
    print("No, {} is Leap Year".format(year))

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student)
Posted by: Guest on May-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language