aboutsummaryrefslogtreecommitdiff
path: root/challenge-286/packy-anderson/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-286/packy-anderson/python/ch-1.py')
-rwxr-xr-xchallenge-286/packy-anderson/python/ch-1.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-286/packy-anderson/python/ch-1.py b/challenge-286/packy-anderson/python/ch-1.py
new file mode 100755
index 0000000000..bfe31a7b8b
--- /dev/null
+++ b/challenge-286/packy-anderson/python/ch-1.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+from random import randrange
+
+words = []
+with open(__file__) as fh:
+ words.extend(fh.read().split())
+
+print(f'{ words[ randrange( len(words) ) ] }') \ No newline at end of file