Simple poem
Input
format_poem('Ode', 'To Joy')
Output
Ode\n\tTo Joy
The function returns a string with a newline and a tab before the line.
Full lesson preview
Create strings that include newlines, tabs, and quotes using escape sequences.
Problem statement
Task
Examples
Input
format_poem('Ode', 'To Joy')
Output
Ode\n\tTo Joy
The function returns a string with a newline and a tab before the line.
Input format
Output format
Constraints
Samples
Input
format_poem('Title', '')
Output
Title\n\t
An empty second line still gets the tab after the newline.