Ask coding questions

← Back to all posts
I am trying to solve this problem
AmanKanuri

Write a one-line program to output the following haiku. Keep in mind that for a one-line program, only one print command is used.

A lightning flash:
between the forest trees
I have seen water.
- Shiki

this is what I wrote
print ('\n A lightning flash:\n between the forest trees\n I have seen water.\n -Shiki')

Voters
AmanKanuri
Comments
hotnewtop
CodingCactus

matbe get rid of first \n so that it prints on top line of console

Codemonkey51

It works for me. What is wrong with it for you?