|
@ -18,10 +18,11 @@ def poetry(): |
|
|
mediumwords.append(word) |
|
|
mediumwords.append(word) |
|
|
else: |
|
|
else: |
|
|
longwords.append(word) |
|
|
longwords.append(word) |
|
|
print(shortwords) |
|
|
# Pick one from each list of words |
|
|
line = (random.choice(shortwords), |
|
|
line = (random.choice(shortwords), |
|
|
random.choice(mediumwords), |
|
|
random.choice(mediumwords), |
|
|
random.choice(longwords)) |
|
|
random.choice(longwords)) |
|
|
|
|
|
# Join into a sentence |
|
|
result = " ".join(line) |
|
|
result = " ".join(line) |
|
|
return result |
|
|
return result |
|
|
|
|
|
|
|
|