217k views
0 votes
Easy python question, no explanation just right answer

Easy python question, no explanation just right answer-example-1
User Sophivorus
by
2.9k points

1 Answer

12 votes

Answer:

See the code below.

Step-by-step 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.

User Benvorth
by
4.7k points