string_1.Write a Python program to get a string made of the first 2 and last 2 characters

preview_player
Показать описание
1. Write a Python program to get a string made of the first 2 and last 2 characters of a given string. If the string length is less than 2, return the empty string instead?

for docs:

Рекомендации по теме