nums = list(str(num))
result = 
for i in range(len(nums)):
for j in range(len(nums)):
if i < j:
result.append(int(nums[i]) + int(nums[j]))
you will have duplicated pairs
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.