mathurm mathurm
  • 16-04-2022
  • Computers and Technology
contestada

easy python question, no explanation just right answer

easy python question no explanation just right answer class=

Respuesta :

Plus16463574585
Plus16463574585 Plus16463574585
  • 18-04-2022

Answer:

See the code below.

Explanation:

def sumOfTwo(a, b, v):

   output = False

   for i in a:

       for j in b:

           sum = i + j

           if sum == v:

               output = True

   print(output)

sumOfTwo([-4, 6, 1], [10, .5, 30], 6)

You can use any online python ide to check the code.

Answer Link

Otras preguntas

Those who opposed the provisions of the Sherman Antitrust Act believed that success in business depended on
The product of three integers is −5. Determine all of the possible values for the three factors.
The villeins were to obey the nobility but enjoyed greater freedom than serfs true false
Mendel’s pea plants had either purple or white flowers. This means that the plants
What does Brian compare the insects to? In the book Hatchet...
. How did the U.S. government and American society react negatively to the sudden increase in immigration?
The Chinese one-child policy was controversial because A.fundamental human rights were violated. B.the ratio of boys to girls was unbalanced. C.families with mo
A __________ can cause a driver to take risky chances or make bad choices? A. poor driving attitude B. traffic jam C. low posted speed limit
In the equation -2(2-r)=4(5-r) what is r?
The Third Crusade led to _______________. a. Christian control of Antioch c. a failed attempt by King Louis VII to recapture cities b. a truce between King Ric