Skip to content

Instantly share code, notes, and snippets.

@bmispelon
Created May 16, 2022 15:18
Show Gist options
  • Save bmispelon/031944b1e50ee49d3f40c6fef5605a34 to your computer and use it in GitHub Desktop.
Save bmispelon/031944b1e50ee49d3f40c6fef5605a34 to your computer and use it in GitHub Desktop.
A poetry generator in 5 lines of python
import random as r, unicodedata
coolwords = [unicodedata.name(chr(119556+i)).split()[-1] for i in range(83)]
for w in r.sample(coolwords, r.randrange(9, 15)):
print(w, end=r.choice(' \n'))
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment