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
Thank you very much if you can help!
MA_775_DIABLO [31]

Answer:

1. y 718 the Muslims were in control of nearly the whole Iberian Peninsula. In the aftermath of the Reconquista and the Inquisition, Catholicism. They  saw the brief spread of Arianism, Catholic religion coalesced in Spain at the time.  in which the other European powers tried to assume power over the Spanish monarchy. y 1250, nearly all of Iberia was back under Christian rule, with the exception of. They saw the brief spread of Arianism, Catholic religion coalesced in Spain at the time. Under Philip II, the Spanish empire included territories on every continent

2. The Greeks made significant and original contributions to mathematics and geometry, but much less so to science, except in astronomy, in which they greatly excelled. ... Euclid of Alexandria (born around 325 bc) is referred to as the 'father of geometry'. By Dawn's Early Light: Jewish Contributions to American Culture from the Nation's Founding to the Civil War.Medieval Muslims created beautiful gardens and courtyards. Medieval Muslim cities were often carefully planned and featured such advanced amenities. As such, throughout the early Renaissance many people began to study at schools that specialized in humanism. As such, scholars such as Petrarch, Erasmus, Guillaume Budé, and Michel de Montaigne helped advanced the ideals of humanism and caused the Renaissance to spread throughout Europe.

3. The catholic church tried to stop the spread of Protestantism by excommunicating, military repression and counter reformation. Explanation: Protestant Reformation began in Europe during the 16th century to challenge the religious and political practices of the Roman Catholic church.

4. Peace of Augsburg: Signed in 1555, made it possible for rulers of the Holy Roman Empire to choose between Protestantism or Catholicism as their choice of belief. Edict of Nantes: Signed in 1598, granted the Protestants of France rights in the nation. Before this event, Protestants of France were considered as heretics.The Peace of Westphalia is the collective name for two peace treaties signed in October 1648 in the Westphalian cities of Osnabrück and Münster. They ended the Thirty Years War and brought peace to the Holy Roman Empire, closing a calamitous period of European history that killed approximately eight million people.Napoleon's coronation did not on its own end the pope's influence over world politics. European governments, as they grew from city-states to nations, Though the pope's powers declined when European monarchs became, internal theology of the world's third-largest religion as it was under Benedict,

Explanation:

6 0
3 years ago
At a college there are 120​ freshmen, 90​ sophomores, 110​ juniors, and 80 seniors. A school administrator selects a simple rand
Marrrta [24]

<u>Answer: </u>

The type of sampling used in the example is 'stratified sampling'.

<u>Explanation: </u>

  • The term 'stratified' used to name the method of sampling is referred to as 'fixed' or definite.
  • If we keenly process the data that is given in the example, we can find that the number of students chosen for the study from each category makes up 10 percent of the entire category.
  • As the researcher has chosen to carry out the study with a definite 10 percent of students from each category, the sampling method can be concluded to be 'stratified sampling'.
4 0
3 years ago
A major cause of imperialism was ___ because more natural resources were needed in Europe. A. Colonization B. Exploration C. Ind
Norma-Jean [14]

In the late 1800's, economic, political and religious motives prompted European nations to expand their rule over other regions with the goal to make the empire bigger. The Industrial Revolution of the 1800's created a need for natural resources to fuel the newly invented machinery and transportation.

3 0
3 years ago
Suppose you monitor a large number (many thousands) of stars over a period of 3 years, searching for planets through the transit
Musya8 [376]

Answer:

5, 2, 7

Explanation:

-As seen from Earth, the planet's orbit must be nearly face-on (perpendicular our line-of-sight).

-You must be able to precisely measure variations in the star's brightness with time.

-The planet must have an orbital period of less than about 1 year.

Cheers

8 0
3 years ago
Weaving in and out of lanes during heavy traffic _____________________.
Tems11 [23]

Weaving in and out of lanes during heavy traffic is (b) slows down other vehicles.

Weaving:

  • Navigating lane changes while in heavy traffic slows down other vehicles, adding to the traffic jam.
  • When a car pulls out of a driveway, merges into the closest lane, and then weaves across lanes one at a time to make a turn at an intersection on the other side of the road, that distance is known as the weave distance.
  • A motorway or expressway lane that functions as both an entrance and an exit is known as a weaving lane. The motorist should exercise caution in this lane because cars use the same lane to leave and join the freeway. However, those using the sharing lane must give way to those using the interstate.

Learn more about Weaving here brainly.com/question/25915341

#SPJ4

5 0
2 years ago
Other questions:
  • Where can water go from a glacier?
    5·1 answer
  • Richard is a five-month-old baby. his parents frequently sit by his side to cuddle him or to speak to him in loud and affectiona
    15·1 answer
  • What is one example from your personal experience that illustrates racial hierarchy
    10·1 answer
  • Clyde and Sarah just watched their teammate fail at an important athletic competition. Clyde then succeeded at the competition,
    6·1 answer
  • Thinking about suicide is called _________, and a suicide attempt that is not completed is called __________.
    7·1 answer
  • How can Indian Human resource become more productive and employable?
    8·1 answer
  • An effective safety and security program:
    8·1 answer
  • How did early civilizations influence the development of India?
    6·1 answer
  • Society. How has our society been developing? Write in six points.​
    6·1 answer
  • Jason is a very warm and friendly person. He will strike up conversations with strangers, and they respond in a positive manner
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!