diff --git a/poetry.py b/poetry.py index 0c9d961..616f255 100644 --- a/poetry.py +++ b/poetry.py @@ -18,10 +18,11 @@ def poetry(): mediumwords.append(word) else: longwords.append(word) - print(shortwords) + # Pick one from each list of words line = (random.choice(shortwords), random.choice(mediumwords), random.choice(longwords)) + # Join into a sentence result = " ".join(line) return result