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
When slavery was abolished?
Anestetic [448]
Well, this depends where. In the US the Amendment to the  Constitution that abolished  slavery was passed in 1865 in January and ratified in December. In the United Kingom and its realms it was abolished in 1833.
6 0
3 years ago
The term discrimination is defined in the text as: question 40 options: 1) the theory that prejudice is embedded in our culture.
NNADVOKAT [17]
The term discrimination is defined in the text as: <span>4) prejudiced action against a group of people.
This prejudice cause a specific group of people to receive a worse treatment compared to another group of people based on something that they inherit, such as race, gender, religion, or ethnicity.</span>
7 0
3 years ago
Dante compares himself to Aeneas and Paul, two men who made similar underworld journeys. Virgil responds with what insult? Why i
Whitepunk [10]

Answer:

Virgil explains how due to Beatrice desire´s he is in hell guiding Dante.

Explanation:

For Virgil the fact that Dante compares with Aeneas and Paul turns out to be hurtful, since the first was the inspiration in the poem of his composition as he was the founder of Rome, and the second was one of the saints of his great admiration to be The founder of the Church.

In this sonnet Dante expresses his feelings of fear and conviction; he believes that he will become the next Aeneas or Paul after passing through hell, he really thinks something relevant will happen after.

Given these statements by Dante, Virgil explains the reason for his stay and guidance for his passage in hell, he tells her how Beatrice was in charge of this feat, since thanks to her wishes and sacrifices for the love of Dante, Beatrice he asks Virgil to guide his way through that place.

4 0
3 years ago
What conclusions can you draw about the relationship between GDP, standard of living, and productivity?
Novosadov [1.4K]

Answer:

GDP or gross domestic product is the total amount of products made in a country within a certain period of time.

standard of living is the availability or the degree of access to wealth. Productivity is the output of the effort placed in production to the input or the effort itself.

Explanation:

GDP, standard of living, and productivity all seek to measure the rate of profit or wealth of an individual or a country. When there is a high GDP in a country, is show that the country is very productive and would increase the standard of living.

4 0
3 years ago
Think of something you use every day that is made of plastic or foam, and imagine if it were made of an alternate substance. How
bezimeni [28]
A good example of this is water bottles, we now have alternate bottles that are reusable and since they’re reusable, it’s less waste
5 0
2 years ago
Other questions:
  • What is the best form of fire safety?
    8·2 answers
  • Samuel faces the challenge of intellectual disability. He has been working as a cashier in a convenience store for several years
    14·1 answer
  • Identity is static based on factors like gender and race Identity is dynamic which is ascribed by others in communication Identi
    11·2 answers
  • Based on specific osha definitions of workers and their roles, job site inspections should be performed only by _____ persons
    10·1 answer
  • The total dollar value of all the nation's final goods and services produced over the course of a year is called
    8·1 answer
  • The line of Demarcation Was a imaginary line that divided control of the territory in the Americas between which two countries
    15·1 answer
  • Which type of consequence is correctly matched with an example? positive reinforcement – vickie applies lotion to lessen the dis
    14·1 answer
  • Early news coverage of democrat wendy davis’s personal background during the 2014 governor’s race raised questions about what to
    15·2 answers
  • What were the short term and long term impacts of the war of 1812
    12·1 answer
  • Chandler and Alex were transferred to a new city and needed to find a new home. They carefully considered every house within the
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!