From b6b448564c1d62f1d4c623b9bce5f8a9f8d8b652 Mon Sep 17 00:00:00 2001 From: Abigail Date: Mon, 18 Jan 2021 14:40:04 +0100 Subject: Python solution for week 95, part 1 --- challenge-096/abigail/python/ch-1.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 challenge-096/abigail/python/ch-1.py (limited to 'challenge-096/abigail/python/ch-1.py') 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)) -- cgit