Question: I KEEP GETTING THIS ERROR WITH MY CODE, PLEASE HELP AND HERE IS MY CODE: def days_in_feb(user_year): # if the year is not divisible by

I KEEP GETTING THIS ERROR WITH MY CODE, PLEASE HELP

I KEEP GETTING THIS ERROR WITH MY CODE, PLEASE HELP AND HEREAND HERE IS MY CODE:

def days_in_feb(user_year): # if the year is not divisible by 100 or it is divisible by 400 if user_year%100 != 0 or user_year%400 == 0: # check whether it is divisible by 4 or not if user_year%4 == 0: # if yes then return 29 return 29 else: #otherwise return 28 return 28 # return 28 is no condition is satisfied return 28 # get year from the user year = int(input()) # call the days_in_feb() method num_days = days_in_feb(year) # print the number of days in feburary print(f"{year} has {num_days} days in February.")

2: Unit test ^ 012 days_in_feb(1913) 3: Unit test ^ 0/3 days_in_feb(1600) 4: Unit test ^ 0/3 days_in_feb(1900)

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!