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]
1 year 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]1 year 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
Rosa, who operates a Street Tacos restaurant in her apartment, is charged with criminal violations of the local health and build
Ilya [14]

Hello. This question is incomplete. The full question is:

"Rosa, who operates a Street Tacos restaurant in her apartment, is charged with criminal violations of the local health and building codes, state license regulations, and federal environmental statutes. To obtain a conviction, the prosecution must

a. persuade three-fourths of the jurors to agree on a guilty verdict.   b. show the evidence as reasonably permitting a guilty verdict.  c. convince the court it is more likely than not that the charges are true  d. prove beyond a reasonable doubt that Rosa committed every essential element of an offense."

Answer:

b. show the evidence as reasonably permitting a guilty verdict.  

Explanation:

When convicting someone for the practice of a criminal offense, the judge imposes the penal sanction that the law provides: penalties of imprisonment, detention, simple imprisonment, restrictive rights and a fine. This conviction has other effects, both criminal and extra-penal. However, for a conviction to be carried out, the judge must reach a conclusion that the defendant is guilty. In order to reach this conclusion, it is necessary to show evidence that proves that the defendant is acting in disagreement with the law and therefore should be punished.

In the case shown in the question, for Rosa to receive a sentence, the charge imposed on her must show evidence as reasonably allowing a guilty verdict.

7 0
3 years ago
The Atlantic slave trade began in the _____?<br><br> a.1500s<br> b.1600s<br> c.1700s<br> d.1800s
Rama09 [41]
The atlantic slave trade began in 1500s
3 0
3 years ago
At the beginning of the empire, in order to be a Roman citizen you had to _______ . a. own land c. live in the city b. be a nobl
Neko [114]

The correct answer is own land

In order to become a citizen in ancient Rome you had to be a man and own land. Women and slaves were not granted citizenship. Initially, only the people that lived within the city were considered as citizens


8 0
3 years ago
Read 2 more answers
Help, Please Because I'm Tryna Pass I Got You On The 30 lol ​
hram777 [196]

Answer:

Lincoln began to study the law.

Lincoln almost drowned.

Lincoln’s garden was washed away.

Lincoln became a schoolteacher.

Explanation:

Lincoln began to study the law.

Lincoln almost drowned.

Lincoln’s garden was washed away.

Lincoln became a schoolteacher.1sr

6 0
3 years ago
What is used by the government to determine how much you and your family can afford for college?
SpyIntel [72]
B.working student financial aid because thats the way they access how much you and your parents funds and give you financial aid which is something that has to do with the payment in college
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which group is a national charity? United Way Freedom Corps church food pantry Neighborhood Watch
    9·1 answer
  • One should know who represents him in his various governments. True/False.
    13·2 answers
  • Richard says in his speech, "In the words of Franklin D. Roosevelt, 'The only thing we have to fear, is fear itself.'" What form
    9·1 answer
  • Start in Wyoming. Move one state north and then 3 states to the East. What state are you in?
    9·2 answers
  • Juanita is conducting survey research for the Colgate-Palmolive Company. The company recently sent several cases of personal-siz
    15·1 answer
  • If a researcher were to use a .01 level of significance rather than the .05 level, the probability of a Type I error would ____
    12·1 answer
  • Which statement is correct about US involvement in the Vietnam War in the 1960s?
    5·2 answers
  • Select the correct answer.
    15·1 answer
  • The House of Burgesses, the Mayflower
    11·1 answer
  • Darwin's observations of finches was a study of their distribution, making it one example of the ____ evidence he collected as h
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!