Skip to content

Commit

Permalink
3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huisuu committed May 14, 2024
1 parent e288b22 commit 4294539
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions HSKIM/1to10/3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def solution(numbers):
sum = []
num = 0
l = len(numbers)

for i in range(0, l):
for j in range(0, l):
num = numbers[i] + numbers[j]
if i != j:
sum.append(num)
lst = list(set(sum))
return lst

0 comments on commit 4294539

Please sign in to comment.