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]
1 year 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]1 year 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
A seasonal pattern of symptoms is most likely to be a characteristic of
kolezko [41]

A seasonal pattern of symptoms is most likely to be a characteristic of bipolar disorder.

Bipolar disorder is a brain disorder that causes unusual changes in mood, activity levels and energy. The mood ranges from manic episodes to a depressive ones. Seasonal pattern represents a potentially important specifier of bipolar disorder. Studies indicate that seasonality may reflect increased severity of disorder.

<em>There are four types of bipolar disorder: Bipolar I, Bipolar II, Cyclothymic, Other Specified and Unspecified Bipolar.</em>

6 0
3 years ago
For the last week, adam has been sleeping very little, yet still seems full of energy and enthusiasm. his extreme optimism has l
mixas84 [53]
For the last week, Adam has been sleeping very little, yet still seems full of energy and enthusiasm. His extreme optimism has led him to take foolish risks. He has lost a lot of money - for instance, betting on a horse that he was sure would win. Adam may be in a manic state. 
6 0
3 years ago
Significant brain development of the _______ is finally completed during emerging adulthood.
Luba_88 [7]

Answer:

Prefrontal Cortex

Explanation:

The Prefrontal Cortex is the part of the brain which does not fully develop until the adult years. The complete development of the prefrontal cortex occur between 18 - 25 years.

The prefrontal cortex remains under construction during the adolescent years. In humans, the prefrontal cortex is located in the front part of the frontal lobe. It's an important site of the brain for working memory.

8 0
2 years ago
1 point
blsea [12.9K]

Answer:

b

Explanation:

3 0
3 years ago
Read 2 more answers
This 1925 book by Adolf Hitler was written while he was in prison, outlining his racial and political beliefs.
sweet-ann [11.9K]
I think that the answer is that he like around 34

8 0
3 years ago
Read 2 more answers
Other questions:
  • One advantage of the corporate form of organization is that it avoids double taxation.
    6·1 answer
  • John a supervisor at the local factory receives frequent requests from coworkers on how to fix the machines they use what should
    13·1 answer
  • There has always been controversy surrounding a woman’s right to have an abortion. Give each side of the argument and briefly di
    8·2 answers
  • Which strategy will help Sadie understand her reading of August’s character
    5·2 answers
  • Organizations that have ethics programs based on a _____ orientation are found to make a greater contribution than those based s
    10·1 answer
  • Sandra es bióloga y se dedica a estudiar los árboles, por eso anualmente mide todos los árboles del jardín botánico. El año pasa
    11·1 answer
  • Which are duties of tribal councils? Check all that apply.
    14·2 answers
  • Match each location with the correct letter.<br> Rome<br> Greece<br> India<br> Middle East
    11·1 answer
  • Discuss the implication of the use of tools to a person’s social status during the sixteenth century in the Visayas.
    15·1 answer
  • According to some, mobilization is one of the main factors of collective action. mobilization is
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!