Poetry recitation competition

Report a typo

At a poetry reading competition, one of the participants recited a poem by Alexander Blok, but chose the wrong intonation, so the poem sounded like “The night! The pharmacy! The street! The pointless lamppost in the mist!”. In the original poem, the author used commas between objects and a dot at the end of the sentence.

Fix the code so that the punctuation marks are correct and help the reciter choose the right intonation.

Mind the dot and spaces.


Sample Input 1:

[“The night“, “the pharmacy”, “the street”, “the pointless lamppost in the mist”]

Sample Output 1:

The night, the pharmacy, the street, the pointless lamppost in the mist.
Write a program in Python 3
poem = ['The night', 'the pharmacy', 'the street', 'the pointless lamppost in the mist']
print(*poem, sep='!')
___

Create a free account to access the full topic