Question: # Step 1 : Check if the year is divisible by 4 if input _ year % 4 = = 0 : # Step 2
# Step : Check if the year is divisible by
if inputyear :
# Step : Check if the year is a century year
if inputyear :
# Step : Check if the year is divisible by
if inputyear :
# Step : Set the isleapyear variable to True
isleapyear True
else:
# Step : Set the isleapyear variable to True
isleapyear True
# Step : Print the result
if isleapyear:
printfinputyear leap year"
else:
printfinputyear not a leap year"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
