Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = list(range(1,11))
- c.sort(reverse = True)
- x = 9
- size = len(c)
- output = []
- for i in range(size):
- start = c[i]
- for e in c:
- if start + e == x:
- output.append([start, e])
- for i in output:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement