Advertisement
AceScottie

Untitled

Aug 2nd, 2018
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. c = list(range(1,11))
  2. c.sort(reverse = True)
  3. x = 9
  4. size = len(c)
  5. output = []
  6. for i in range(size):
  7.     start = c[i]
  8.     for e in c:
  9.         if start + e == x:
  10.             output.append([start, e])
  11. for i in output:
  12.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement