aboutsummaryrefslogtreecommitdiff
path: root/challenge-096/abigail/python/ch-1.py
blob: 84a1c2618bac28d1403252ad543d8c6eee23156a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/opt/local/bin/python

#
# See ../README.md
#

#
# Run as: python ch-1.py < input-file
#

import fileinput

for line in fileinput . input ():
    words = line . strip () . split ()
    words . reverse ()
    print (" " . join (words))