aboutsummaryrefslogtreecommitdiff
path: root/challenge-096/abigail/python
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-01-18 14:40:04 +0100
committerAbigail <abigail@abigail.be>2021-01-18 14:40:04 +0100
commitb6b448564c1d62f1d4c623b9bce5f8a9f8d8b652 (patch)
tree010215b103acab9e7e4fff070783229efd178de0 /challenge-096/abigail/python
parent4f87b77d36d715e794302abb707da11eb736ba58 (diff)
downloadperlweeklychallenge-club-b6b448564c1d62f1d4c623b9bce5f8a9f8d8b652.tar.gz
perlweeklychallenge-club-b6b448564c1d62f1d4c623b9bce5f8a9f8d8b652.tar.bz2
perlweeklychallenge-club-b6b448564c1d62f1d4c623b9bce5f8a9f8d8b652.zip
Python solution for week 95, part 1
Diffstat (limited to 'challenge-096/abigail/python')
-rw-r--r--challenge-096/abigail/python/ch-1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-096/abigail/python/ch-1.py b/challenge-096/abigail/python/ch-1.py
new file mode 100644
index 0000000000..ddc34e2633
--- /dev/null
+++ b/challenge-096/abigail/python/ch-1.py
@@ -0,0 +1,6 @@
+import fileinput
+
+for line in fileinput . input ():
+ words = line . strip () . split ()
+ words . reverse ()
+ print (" " . join (words))