Hi,
after I did my solution def find_sum(lst, k): resp = [] for i in range(len(lst)): temp = k - lst[i] if temp in lst: resp = [lst[i], lst[lst.index(temp)]] break return resp
and checked the solutions proposed I’m interested in knowing how my approach performs in comparison with the solutions proposed.
Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers