441,889 views
13 votes
13 votes
Easy python question, no explanation just right answer

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

1 Answer

10 votes
10 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 TrueBlue
by
3.2k points