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
Which physical feature is part of the darker-shaded region on the map
kari74 [83]
Answer: Desertification
6 0
2 years ago
Sandra is a no-nonsense manager with excellent budgeting skills. On projects that Sandra manages, the team always comes in under
Ludmilka [50]

Answer:

Financial resources

Explanation:

From the description, Sandra has adequate skills to manage the company's financial resources. She knows how to execute the budget efficiently, as she includes the entire team, accurately predicting all costs. These are the essential characteristics for a company's financial manager, who is the person responsible for managing the company's financial resources.

8 0
3 years ago
Read 2 more answers
When studying the Calumet region of Illinois and Indiana, Alfred Meyer noted four stages of development as new groups occupied t
Step2247 [10]
C. Conurbanization is the answer
7 0
3 years ago
Read 2 more answers
What was the greatest natural resource of the new england colonies
nignag [31]

Answer:

The natural resources of the New England Colonies included fish, whales, trees and furs.

3 0
3 years ago
Boris is trying to use classical conditioning to teach his goldfish to come to the top of the tank to eat whenever he turns on t
ankoles [38]

The correct answer is He should turn on the light before he drops the food into the tank.

Classical conditioning is a type of learning in which an organism learns to transfer a natural response to a stimulus, to another initially neutral stimulus, which then becomes conditioned. This process occurs through the association between the two stimuli (unconditioned and neutral).

For classical conditioning to be generated, the neutral stimulus must be presented first and a few seconds later the unconditioned stimulus (the process must be repeated several times), so that there can be an association.

Another concept is reinforcement, which means pairing followed by conditioned and unconditioned stimuli, which, if not done, tends to decrease conditioned responses and may lead to extinction, that is, until they disappear.

8 0
3 years ago
Other questions:
  • Jane believes that all student athletes are poor in academic achievement. One of her classmates, Patrick, has the highest GPA in
    6·1 answer
  • How is gender commonly expressed in the united states
    7·2 answers
  • What must the government do first before classifying information?
    14·2 answers
  • How is federal executive formed​
    8·1 answer
  • One of the results of foreign invasion was the increase in power of kings.
    11·2 answers
  • What is a tool that can be used to measure a size of a force
    6·1 answer
  • Effective interviewers are skilled at _____, or repeating key words and phrases back to their clients to ensure the clients that
    9·1 answer
  • Which personal traits best describe a worker in the field of forensic pathology?
    15·1 answer
  • Do you think Jefferson was a good president? Did he do right by the country?<br> Why?
    5·2 answers
  • __________________________ and ______________________________ factors can affect an organism’s traits.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!