1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zalisa [80]
2 years ago
14

Write a function, daysbetween, which return an integer represneting the number of days between two dates

Social Studies
1 answer:
Varvara68 [4.7K]2 years ago
3 0

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

You might be interested in
According to carl rogers ______________ is an attitude of provisional acceptance toward another person. this attitude nurtures g
aleksley [76]

This is what is called the conditional positive regard. It is the opposite of the unconditional positive regard and it means acknowledgment under certain condition. It can be both positive and negative. Positive when nurtures growth and negative when for example child comes out as homosexual and his parents start encouraging him to seek medical help unless the their child wants them to stop providing positive regard.




4 0
4 years ago
What three regions make up the continental margin that extends from the land into the ocean. Will mark brainiest. Be Honest. Tha
SpyIntel [72]

Answer:

the continental shelf, continental slope, and continental rise

6 0
3 years ago
Read 2 more answers
Name four kinds of landforms that are shown on the map
Alex777 [14]
1. Plains
2. Plateaus
3. Mountains
4.
7 0
3 years ago
Read 2 more answers
When members of a group seek information about the group's purpose and the members in the group, what stage is the group in?
nignag [31]

Answer:Stage 1. Forming

Explanation:

This is the beginning stage of forming a group or team in which people come together to work towards a shared purpose. At this stage everyone is still nervous and uncertain so everyone act calm and politely. This is the stage of getting to know the team member and getting to know what the purpose of the group and to know what each person is going to do within the group. The goal and the objectives of the team are clearly stipulated. It is a getting to know one another and everything about the group.

8 0
3 years ago
Who is in charge of the meetings in the Georgia Senate?
TEA [102]

Answer:

Explanation:

Senators must be at least 25 years old, a citizen of the United States, and a resident of Georgia for two years and their senatorial district for one year (preceding the election). The highest position in the Senate is the President of the Senate, a position currently held by Lieutenant Governor Geoff Duncan. The second highest position is that of President Pro Tempore, currently held by Senator Butch Miller.

4 0
3 years ago
Other questions:
  • In terms of uses and gratifications theory, Jake started to watch The Amazing Race so that he could engage in the lunchtime disc
    11·1 answer
  • What was a government response to the debates over us participation in world war i?
    14·2 answers
  • What did Wilhelm Wundt contribute to psychology?
    11·1 answer
  • A researcher was interested in differences in men's and women's nonverbal behavior. using a sample of 30 male and 30 female part
    6·1 answer
  • ________ is the most difficult form of child maltreatment to identify
    8·1 answer
  • A(n) ________ allows researchers to identify the specific effects of the independent variable from the possible effects of the e
    10·1 answer
  • What is the main effect of Article VI of the Constitution? A) It explains how the Constitution may be amended. B) It establishes
    14·2 answers
  • Many people have argued that when students get an education, this benefits our society as a whole. Think of at least three benef
    5·1 answer
  • State any two rights of women and children in relationships​
    9·1 answer
  • Russ plays the bassoon. most bassoon players can easily learn the saxophone. it's therefore likely that russ could easily learn
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!