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

why can the sun ever reach zenith (90 degrees) position in NY?
What fraction of Emmas garden is planted with vegetables
Which principles of government are most important for baltimore city to work effectively?
the development of early civilizations usually depend on
a nosotros (Nos/les) gusta aprender el espanol
Which of the following is true about ecology? A.Ecology is a philosophy that seeks to limit harm to the natural world. B.Ecology is a practice that emphasizes p
Are rocks made of cells
START I and START II are treaties that __________.
Tommy the Clown or the Hip Hop Clowns travel the world performing for diverse audiences. How should the sentence above be rewritten to correct the subject-v
Which statement describes the role of the Federal Reserve System? a. It prints all the paper money in circulation in the United States. b. It proposes bills t