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

To hold office as President of the United States, a person must meet all of the constitutional requirements below except which one? A. 35 years of age or older
What happens when an oceanic and a continental plate converge?
2. In general, how should you revise a sentence with a misplaced modifier? Type your answer here
Which expression is equivalent to one over fourn − 16? one over four(n − 4) one over four(n − 64) 4(n − 4) 4(n − 64)
Question 19 Unsaved If it refers to a ticket, how do you say I am buying it ? Question 19 options: Yo la compro. Yo lo compro. Yo compro lo. Yo compra la.
What were the primary causes of the great depression?
What did the astronomer sosigenes calculate the length of a year to be?
What was anne frank's overwhelming mood during the second half of 1943?
What is the acceleration of the ball between 0 and 3 seconds?
Newton's 1st law of motion states that a moving object will go in a straight line unless an outside force changes this motion. What outside force prevents the p