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
As a result of using _________, students who review course materials at various times during a semester so they will be prepared
fomenos

Answer:

distributed practice.

Explanation:

Many students review course material at various times during a semester so they will be prepared for the final exam. These students are especially likely to retain the information far into the future. This best illustrates the value of distributed practice. Distributed practice is a strategy of learning that makes use of smaller addiction of study and practice over a longer period of time rather than a short period of time. For example, studying something during two different sessions with a break of a few days (or even hours) in between, rather than learning it all in a go.

3 0
3 years ago
Write one to two sentences explaining how ancestors were important to Native American groups.
soldi70 [24.7K]

Answer:

for guidance because they believe that ancestors are real

4 0
2 years ago
The character of being in agreement with the standards of right conduct _______
dedylja [7]
The character of being in an agreement with the standard of right conduct (morality)
5 0
3 years ago
Read 2 more answers
What was the geography like in 300 C.E.?
ZanzabumX [31]

Answer:

No one really knows the answer.

Explanation:

All the potential knowledge containing that century is lost in history.

May i please get a brainly lol

3 0
3 years ago
Alice who is three weeks old is in the ________ substage of Piaget's sensorimotor development; she will latch on to and suck any
BaLLatris [955]

Answer:

Simple reflexes

Explanation:

Simple reflexes occurs in child from birth to about 1 month old, at this stage infants exercise, refine, and organize the reflexes of sucking, looking, listening, and grasping. Alice being three weeks old and suck anything that touches her lips is going through this stage called the simple reflexes.

5 0
3 years ago
Other questions:
  • _____ occurs when consumers remember only information that supports their personal feelings or beliefs.
    13·1 answer
  • Why is serving on a jury imortant? How does it benefit the community?
    6·1 answer
  • 1. Aristotle said rhetoric is the ability to see the available means of persuasion. True False
    11·2 answers
  • In what ways does the bill of rights protect individuals from the power of government
    5·1 answer
  • Where in the world is your best guess of where this picture was taken? hint: Ukraine
    6·1 answer
  • What is considered the first developmental stage of romantic relationships?
    15·1 answer
  • The psychological sensation of hunger is caused by an empty stomach and low blood glucose. That is, the psychological sensation
    12·1 answer
  • Which statement best describes the reason that job opportunities for women and children increased during early industrialization
    12·1 answer
  • The United States is Multiple choice question. politically diverse but religiously homogeneous. slowly losing its cultural diver
    7·1 answer
  • What are processing questions?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!