#Leap year (problem 3 from week 5 lab) year=int(input("enter a year ")) if(year<=1582): print("Not a Leap Year since it is before 1582") elif((year%4 == 0) and (year%100 != 0)): print("Leap Year") elif((year%4 == 0) and (year%100 == 0) and (year%400 == 0)): print("Leap Year") else: print("Not Leap Year") #lab report #Input1: 1200, Output: Not leap year, Explanation: 1200<=1582 #Input2: 1992, Output: Leap year, Explanation: 1992%4 =0, #divisible by 4, but 1992%100 =92, 1992 is not divisible by 100 #Input3: 2000, Output: Leap year, Explanation: 2000%4 is 0, #2000%100 is 0, 2000 %400 is 0, 2000 is divisible by 4, 100 and 400 #Input4: 1700, Output: Not leap, Explanation: 1700 % 4 is 0, 1700 % #100 is 0 BUT it is NOT divisible by 400, 1700 % 400 = 100