The function that performs the above task is indicated below. See the definition a function in programming.
<h3>What is a function?</h3>
A function is essentially a "chunk" of code that you may reuse instead of writing it out several times.
Programmers can use functions to break down or breakdown an issue into smaller segments, each of which performs a specific purpose.
<h3>What is the function that performs the task above?</h3>
# numdaybetween function defined
def NumDaysBetween(y1,m1,d1,y2,m2,d2):
# returns the days between 2 dates
return (y2-y1)*365 + (m2-m1)*31 + (d2-d1)
# calling function
print("Days between:",NumDaysBetween(2009,5,1,2011,5,1))
print("Days between:",NumDaysBetween(2011,5,1,2012,6,12))
Learn more about functions;
brainly.com/question/25638609
#SPJ1