2 of 5
Formatted header, added syntax highlighting
Alex A.
  • 24.6k
  • 5
  • 38
  • 119

Python 3, 123 bytes

I'm a newcomer, gotta start somewhere...

for l in G:
    d = l.split(',')
    s=d[(0 if len(d)==4 else 4):(2 if len(d)==4 else 6)]
    print(int(s[0]),int(s[1]))
monguin
  • 189
  • 3