Poetry Program
HenryZelonka1 (89)

This is a program a found in an old coding book. The program was written in BASIC but I translated it to python. It generates a random poem. I made the words that are random display in blue and the default words in white.

It may give you an error message. If it does, just restart the program. It will eventually work.

Here is an example of a poem generated.

You are viewing a single comment. View All
CodingCactus (3201)

also, lists start at index 0, so you should do something like e = randint(0, len(b)) or something