aboutsummaryrefslogtreecommitdiff
path: root/challenge-286/zapwai/python/ch-1.py
diff options
context:
space:
mode:
authorDavid Ferrone <zapwai@gmail.com>2024-09-10 11:55:23 -0400
committerDavid Ferrone <zapwai@gmail.com>2024-09-10 11:55:23 -0400
commitf71c5da83fde6a02fcc780a0654fea607df6addd (patch)
tree973a0d736c3dd6e0da4935ec9777af110c6b37d8 /challenge-286/zapwai/python/ch-1.py
parent07a8cae3a7d33c702ac239d3f1065855e6e8578b (diff)
downloadperlweeklychallenge-club-f71c5da83fde6a02fcc780a0654fea607df6addd.tar.gz
perlweeklychallenge-club-f71c5da83fde6a02fcc780a0654fea607df6addd.tar.bz2
perlweeklychallenge-club-f71c5da83fde6a02fcc780a0654fea607df6addd.zip
Week 286
Diffstat (limited to 'challenge-286/zapwai/python/ch-1.py')
-rw-r--r--challenge-286/zapwai/python/ch-1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/challenge-286/zapwai/python/ch-1.py b/challenge-286/zapwai/python/ch-1.py
new file mode 100644
index 0000000000..546468060a
--- /dev/null
+++ b/challenge-286/zapwai/python/ch-1.py
@@ -0,0 +1,4 @@
+import random
+fil=open("ch-1.py","r")
+words=fil.read().split()
+print(words[random.randint(0,len(words)-1)])