Question: what is meant by make sure function doesn't run when my last name is called your_lastname_18.py Write a Python function, isLeapYear(year) to check if a

 what is meant by "make sure function doesn't run when my
what is meant by "make sure function doesn't run when my last name is called"

your_lastname_18.py Write a Python function, isLeapYear(year) to check if a year is a leap year . The function should return True (i.e. leap year) or False (i.e. common year) based on the algorithm below . if (year is not divisible by 4) then it is a common year) else if (year is not divisible by 100) then it is a leap year) else if (year is not divisible by 400) then it is a common year) else (it is a leap year) Define the main function as follow: - Get user input for a year . Call isLeapYear() function to print if the year is a leap year or a common year . Make sure the main function should not be called (i.e. run) when your_lastname_18 is imported from other Python files

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!