Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def addUp(array, k):
- for i in range(len(array)):
- for j in range(i+1, len(array)):
- if array[i] + array[j] == k:
- return True
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement