diff options
Diffstat (limited to 'challenge-110/roger-bell-west/python/ch-2.py')
| -rwxr-xr-x | challenge-110/roger-bell-west/python/ch-2.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/challenge-110/roger-bell-west/python/ch-2.py b/challenge-110/roger-bell-west/python/ch-2.py new file mode 100755 index 0000000000..5ee699e520 --- /dev/null +++ b/challenge-110/roger-bell-west/python/ch-2.py @@ -0,0 +1,16 @@ +#! /usr/bin/python + +import fileinput + +a=[] + +for line in fileinput.input(): + line=line.rstrip() + r=line.split(',') + for ci in range(len(r)): + while len(a) < ci+1: + a.append([]) + a[ci].append(r[ci]) + +for r in a: + print (','.join(r)) |
