Question: def extra _ credit _ problem _ 1 ( ) : start _ year = 1 9 0 0 end _ year = 2 1

def extra_credit_problem_1():
start_year =1900
end_year =2100
# TODO: Write a program to print leap years from the year 1900 to 2100
# 5 points extra credits
pass
def extra_credit_problem_2(n):
# a prime number is a natural number greater than 1, that can only divisible by itself and 1
# 10 points extra credits
# TODO: given the number n, check if n is a prime number
pass
def main():
print_hello()
# prompt user to get the input then call functions
# ...
main()

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 Programming Questions!