В предложение были добавлены лишние пробелы. Напишите функцию, которая будет принимать такое предложение и возвращать его же в исправленном виде. Все слова должны быть разделены одним пробелом, а в начале и конце предложения пробелов быть не должно.
Примеры:
correct_spacing("The film starts at midnight. ") ➞ "The film starts at midnight."
correct_spacing("The waves were crashing on the shore. ") ➞ "The waves were crashing on the shore."
correct_spacing(" Always look on the bright side of life.") ➞ "Always look on the bright side of life."
В предложение были добавлены лишние пробелы. Напишите функцию, которая будет принимать такое предложение и возвращать его же в исправленном виде. Все слова должны быть разделены одним пробелом, а в начале и конце предложения пробелов быть не должно.
Примеры:
correct_spacing("The film starts at midnight. ") ➞ "The film starts at midnight."
correct_spacing("The waves were crashing on the shore. ") ➞ "The waves were crashing on the shore."
correct_spacing(" Always look on the bright side of life.") ➞ "Always look on the bright side of life."
Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations. Image: Telegram. Commenting about the court's concerns about the spread of false information related to the elections, Minister Fachin noted Brazil is "facing circumstances that could put Brazil's democracy at risk." During the meeting, the information technology secretary at the TSE, Julio Valente, put forward a list of requests the court believes will disinformation. While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc.
from us