Haiku Generator in Python

haiku

Did you know?

A Haiku is a Japanese short poem consisting of three lines traditionally evoking images of the natural world. There are specific rules when writing a Haiku e.g. number of syllables in each line, however, to keep it simple we are not going to worry too much about these rules for now.

Learning Objectives:

By investigating this challenge you are going to further improve your skills at:

  • Using lists and accessing values of a list randomly,
  • Concatenating strings together to create a longer string.

Our Haiku Generator


Check the code below to generate a random Haiku:

Did you like this challenge?

Click on a star to rate it!

Average rating 2.7 / 5. Vote count: 9

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!