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:

Share Button
Posted in Computer Science, Python - Intermediate, Python Challenges

Our Latest Book

Follow this blog