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 the authors of your textbook, the senate is a __________ body where __________
DIA [1.3K]

Answer:

I think it's( dead body where Mike borrowed)

Explanation:

because when it says body I think of something scary going on

4 0
2 years ago
Why does a satellite in a circular orbit travel at a constant speed? Why does a satellite in a circular orbit travel at a consta
puteri [66]

Answer:

The correct answer is c. There is no component of force acting along the direction of motion of the satellite.

Explanation:

When a moving object is traveling in a circular orbit at a constant speed we assume it has a changing velocity, this is mainly because velocity is a vector quantity that rely on the speed the object is moving and direction, because of the variation of acceleration throughout the whole orbit and the lack of other force acting along the direction of motion of the satellite allows the object to travel at a constant speed, but variable acceleration.

5 0
3 years ago
Which of the following BEST characterizes Roosevelt's New Deal? *
777dan777 [17]
Pick number 2 its the right one
5 0
3 years ago
After a defendant screams at his attorney while in court for the fifth time, the judge says, "it seems likely that your client e
Alik [6]

Answer: client's competency to stand trial.

Explanation: The client's competency refers to the client's state of mind during the criminal proceedings. In order to be competent to stand trial, the client must be able to understand the legal proceedings they are facing and the technicalities. Also, part of the competence is linked to the client's ability to work with the attorney and assist in their own defense. The competence statutes is paramount because it protects people's rights - it's not ethical for a person who can't understand the proceedings go before a judge and enter a plea of any kind.

7 0
3 years ago
What is one characteristic of the fertile crescent that encouraged the development of agriculture?
Gekata [30.6K]

Answer:

A, access to the sea

Explanation:

See image, The Fertile Crescent is the green area

7 0
4 years ago
Other questions:
  • Vulnerable persons are those who are less able to protect themselves than other persons in a given situation. The Common Rule (4
    5·1 answer
  • Uncertainties in forecasts are primarily due to which of the following?
    5·1 answer
  • (d) How are developing countries different from least developed ones? Write in a sentence.
    13·1 answer
  • E-democracy is the direct partapation by cictizen online in governmental desions true or false?
    9·1 answer
  • What impact did the breakdown of chiefdoms in early native American cultures eventually have.
    5·1 answer
  • Who is the first president of India ​
    5·2 answers
  • What does explicitly mean?
    10·1 answer
  • What is a major difference between an operating budget and a capital budget?
    14·1 answer
  • How does art represent ones culture? Explain in 5-8 sentences.
    14·1 answer
  • Jackie has been in a terrible mood lately, and she is looking for any way to improve it. When Jackie's friend Anthony asks if sh
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!