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
The approach that examines the adaptations made by rural people as they move into cities is called
Nezavi [6.7K]

Answer:

urbanization

Explanation:

process of a population shift from rural areas to cities

7 0
3 years ago
Which theoretical model promotes creating authentic relationships, increase awareness, express feelings, develop oneself, explor
algol [13]

Humanistic Theoretical Model.

Created by rogers; goals- create authentic relationships, increase awareness, express feelings, development of self, explore core issues that give life meaning, address barriers to freedom and responsibility; philosophy- humans as growth-oriented, increased awareness of self and others to improve self-esteem and personal functioning, search for underlying meaning.

<h3><u>What is humanistic model of psychology?</u></h3>
  • Humanistic psychology, a movement in psychology supporting the belief that humans, as individuals, are unique beings and should be recognized and treated as such by psychologists and psychiatrists. The movement grew in opposition to the two mainstream 20th-century trends in psychology, behaviorism and psychoanalysis.

To learn more about Humanistic Model, click the link

brainly.com/question/28138859

brainly.com/question/11658191

#SPJ4

5 0
2 years ago
Educational duties are required of citizens in order to help children become ____________ citizens.
tigry1 [53]

Answer:

Productive

Explanation:

7 0
3 years ago
Read 2 more answers
What was the ruling in the 1874 Supreme Court Case Minor v.
alisha [4.7K]
Minor v. Happersett, 88 U.S. 162 (1875), is a United StatesSupreme Court case in which the Court held that the Constitution did not grant women the right to vote. ... The Minor v. Happersett ruling<span> was based on an interpretation of the Privileges or Immunities Clause of the Fourteenth Amendment. I believe the answer is A.</span>
6 0
3 years ago
According to erik erikson, the task of the adolescent is to:
Andrews [41]

Answer:

According to Erik Erikson, the main task of adolescents is to solve the crisis of identity versus role confusion. Research has shown that a stable and strong sense of identity is associated with better mental health of adolescents. Good relationships with peers are also linked with better emotional and psychological well-being of adolescents.

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • We all prepare personal budgets. why are they important for us as well as businesses?
    15·1 answer
  • Nina was trying to convince a skeptical friend that she has esp. "so how can you explain what happened yesterday when i knew it
    15·1 answer
  • Which explains why Supreme Court justices are given lifetime appointments?
    8·2 answers
  • Eric suffered a blow to his head during a fight, and found that afterward he was unable to hear. it is likely that his _____ lob
    7·1 answer
  • _____ assumes that children learn gender-linked behaviors by observing and imitating others, as well as through the rewards and
    7·1 answer
  • Select the correct statement regarding epithelia.
    8·1 answer
  • The greater the number of compounding periods within a year, then (1) the greater the future value of a lump sum investment at T
    15·1 answer
  • What is one important way that stelae were used?
    15·1 answer
  • Many Italians liked fascism, although...
    13·1 answer
  • Really need help help
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!