fork download
  1. import re
  2.  
  3. t = [int(x) for x in re.findall(r"\d+", input())]
  4.  
  5. a = t[::2]
  6. b = t[1::2]
  7.  
  8. print(a)
  9. print(b)
Success #stdin #stdout 0.02s 9660KB
stdin
(0, 5), (1, 1), (2, 3), (3, 7), (4, 5), (5, 2), (6, 0), (7, 6)
stdout
[0, 1, 2, 3, 4, 5, 6, 7]
[5, 1, 3, 7, 5, 2, 0, 6]