summaryrefslogtreecommitdiff
path: root/comp/hw/109/words.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/hw/109/words.py')
-rw-r--r--comp/hw/109/words.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/comp/hw/109/words.py b/comp/hw/109/words.py
new file mode 100644
index 0000000..516275f
--- /dev/null
+++ b/comp/hw/109/words.py
@@ -0,0 +1,8 @@
+import random
+
+words = ["hello", "there", "this", "is", "a", "line"]
+
+for i in range(6):
+ word = words[random.randint(0,len(words)-1)]
+ print(word)
+ words.remove(word)