import re t = [int(x) for x in re.findall(r"\d+", input())] a = t[::2]b = t[1::2] print(a)print(b)
(0, 5), (1, 1), (2, 3), (3, 7), (4, 5), (5, 2), (6, 0), (7, 6)
[0, 1, 2, 3, 4, 5, 6, 7] [5, 1, 3, 7, 5, 2, 0, 6]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!