#Write a program to find out the doublet and triplet of a number using lambda functions.

from itertools import combinations
  

lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(lambda(lst, key): lambda(val): sum(val) == key ;list(filter(valid, list(combinations(lst, 3)))))
