Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Write a program that shows a poem of four lines, with a blank line between the two verses.
One print() for each line, and an empty print() for the blank line.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
Plan. Two lines, a blank line, two more lines.
Each line of the poem is a print(). The blank line is an empty print().
Check. The program shows five lines, and the middle one is empty. You can use any words that you like.
Log in to join the discussion.
Loading…