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

If the sales tax for the city of Los Angeles is 9.75%, how much tax would you pay for an item that costs $200.00?
A 5 ft woman is standing next to a tree. her shadow is 10 ft long the trees casts a shadow that is 116 ft long. how tall is the tree? worksheet
Did greece become stronger after the civil war
An insect is 3 inches long what is the length to the nearest hundredth of a centimeter of the insect
In general, which factor is NOT critical when pregnant?A. getting regular prenatal checkupsB. avoiding tobaccoC. avoiding drugs and alcohol D. weighing yourself
how did the invention of the printing press encourage secularism a church literature became to expensive for most people b fewer people were needed to serve in
What is the object of the transitive verb hunted
Which two numbers are 4 units away from 0 on the number line? A) 0 and 4 B) 2 and -2 C) 4 and -4 D) 4 and 8
In legislative term a bill is a proposal
you can buy 6 rolls of paper towels for $7.59 what will it cost if you wanted to buy 15 rolls