Question: # Step 1 : Check if the year is divisible by 4 if input _ year % 4 = = 0 : # Step 2

# Step 1: Check if the year is divisible by 4
if input_year %4==0:
# Step 2: Check if the year is a century year
if input_year %100==0:
# Step 3: Check if the year is divisible by 400
if input_year %400==0:
# Step 4: Set the is_leap_year variable to True
is_leap_year = True
else:
# Step 4: Set the is_leap_year variable to True
is_leap_year = True
# Step 5: Print the result
if is_leap_year:
print(f"{input_year}- leap year")
else:
print(f"{input_year}- not a leap year")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!