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
Did the Roman Empire suddenly fall or transform?
harina [27]

Answer:

Although many political changes occurred in and around 476 CE, many cultural and social functions of the Roman Empire continued. The end of the Roman Empire represents a slow decline reflecting a natural progression of society rather than an abrupt end of power.

4 0
3 years ago
ond, in your own view, what role (if any) does Black Nationalism havetoday? Is this a relevant philosophy for social change in t
vova2212 [387]

Answer:

Even though black nationalism helped the abolition of race segregation, its role in modernity is only commemorative. It is also irrelevant and would propitiate racial segregation because it only looks to empower one minority and separate it from the rest. Because it does what it looked like to prevent and disappear, segregation.

Explanation:

First of all, nowadays the role of black Nationalism is only commemorative and even though it provided society a great benefit, it is outdated to modern society because inclusion, multiversity, and equality are promoted and sought effectively. It is irrelevant to our philosophical and social state because by only working towards the benefit of a certain minority it performs what it sought to eliminate. The segregation of minorities, today we live in a very integrated and cooperative society that has overcome movements to empower minorities. We don't have a perfect society but all of the social groups are equally valued and protected by law. Therefore, it is an outdated ideology.

3 0
3 years ago
What is smelting <br><br><br> Hurry
Aleonysh [2.5K]
The answer is D. Just go and look up the definition on google and it will give you your answer.
8 0
3 years ago
Commerce was a key mode of exchange between which of the following pairs of political entities?
MissTica

Answer: B.

Explanation:

3 0
3 years ago
Read 2 more answers
Where do you the find high levels of irrigation in UAE and India.?
max2010maxim [7]

Answer:

we find it on India.........

5 0
3 years ago
Other questions:
  • According to thamhain and wilemon, _____ is the ability to improve a worker's position.
    5·1 answer
  • What are two main rivers of China and the northeast of the Himalayas
    9·1 answer
  • The President's vetoing of a bill that the Congress approves is an example of
    13·1 answer
  • Do ya know anything about Abraham lincoln
    8·1 answer
  • In childhood stories (such as little red riding hood), we humans worry about predatory mammals such as wolves or tigers rather t
    8·1 answer
  • Using four or more complete sentences, discuss three ways in which Islam has influenced the culture of the Middle East.
    5·2 answers
  • Imagine you are about to do field research in a specific place for a set time. Instead of thinking about the topic of study itse
    11·1 answer
  • What are the 4 parts of social studies?
    14·1 answer
  • What reason did senators give for opposing u.s. membership in the league of nations?
    11·1 answer
  • Anti-beatles crusaders juxtaposed examples of textbook symptoms of artificial neurosis with those of beatlemania, intending to i
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!