blob: 1d8cd29dc8fa03277c59b73b9a0ca79d91070871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
def find_diff (target, int_list):
my_set = set(int_list)
for item in my_set:
if item + target in test:
# print(item)
return 1
return 0
test = (10, 8, 12, 15, 5)
target = 7
print(find_diff(target, test))
|