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
What term describes a "two-chambered" legislative branch and what are the two chambers that comprise Congress?
Rom4ik [11]

Answer:

sorry but i have a important message for people who play among us

Explanation:

attention be careful on among us guys its this hacker called sire sirol on among us make sure you are very careful because this hackers name is called eris loris!

if u read his name backwards you see it spells sire sirol ! if u see that username get out of the game  he can hack you and don't subscribe to his channel  this is a warning. be safe!

4 0
3 years ago
reconciling realities, adapting expectations, and reframing "success": adoptive parents respond to their children's academic int
Katena32 [7]

<u>True.</u>  Adoptive parents adjust expectations, balance realities, and redefine "success" in response to their children's academic interests, challenges, and accomplishments.

<h3><u>Are parents interested in their children's academic performance?</u></h3>

The economic value of children to parents has largely declined in today's modern society. Instead, the expense of raising children has significantly increased due to the expansion of schooling and emphasis on academic success.

Parents are spending significantly more on their children's education than in the past in an effort to improve their chances for upward social mobility. Although it is commonly recognized that having school-aged children increases parental worry, little is known regarding the relationship between children's academic success and parents' psychological health.

By increasing parents' awareness of the importance of children, our study contributes to the body of knowledge about how school-aged children's academic achievement may be related to middle-aged parents' well-being.

Learn more about children's academics with the help of the given link:

brainly.com/question/28207929

#SPJ4

4 0
1 year ago
​the most striking similarity between the effects on children of watching television and the effects on children of playing vide
PtichkaEL [24]
<span>The most striking similarity between the effects on children of watching television and the effects on children of playing video games is that content is more important than time spent. </span>
8 0
3 years ago
"The abilities to recognize when information is needed and to locate, evaluate, effectively use, and communicate information in
butalik [34]

Answer:

SUNY Council of Library Directors definition for "The abilities to recognize when information is needed and to locate, evaluate, effectively use, and communicate information in its various formats," is <em>called SUNNY COUNCIL for Access and Collection (Unified Collection). It was created in December, 2003.</em>

Explanation:

The SUNY Libraries Consortium (SLC), an independent organization, is formed to implement the vision of the Member Libraries of the Consortium (Membership) and support SUNY students, faculty, researchers and staff in support of the intellectual and economic development of New York State.

5 0
3 years ago
Which part of kaedehara yoshinori experience was the secret that needed to be protected.
QveST [7]

The part of Kaedehara Yoshi nori experience was the secret that needed to be protected is the portrait.

<h3>What is a portrait?</h3>

Portrait is known to be a kind of of photography that is used for capturing the face or attributes of a person or group of people.

Note that The part of Kaedehara Yoshi nori experience that was the secret that needed to be protected is the portrait because if it is revealed, it will tell all that needs to be known.

Learn more about experience from

brainly.com/question/11659506

5 0
2 years ago
Other questions:
  • 19. Which is NOT a form of expansion diffusion?
    6·1 answer
  • Puberty is the physical maturing that makes an individual capable of sexual reproduction. Please select the best answer from the
    15·2 answers
  • Face validity of an instrument refers to the style of questions on an instrument that enables the respondents to determine the p
    7·1 answer
  • On which island is mt fuji located
    6·2 answers
  • Governments create public policy to address issues in what three main ideas?
    6·2 answers
  • ​a sexual predator is nearing completion of his sentence. he has indicated that he is consumed by compulsions that he is not abl
    11·1 answer
  • According to the atkinson-shiffrin model, ________. colors are more easily named when they appear printed in that color happy me
    15·2 answers
  • A long arm statute allows one state's court to exercise jurisdiction over a defendant from another state who __________meets the
    11·1 answer
  • What was Lenin’s Policy War Communism? How did war communism help the communists win the Civil War?
    11·1 answer
  • The following characteristics describe which climate region?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!