Найти - Пользователи
Полная версия: Строка
Начало » Центр помощи » Строка
1
Pam_pam
Как в сделать вот такое:
Ввожу слова в строку: A = “Tomato Parrot Chicken”
Програма выдает обратный порядок символов:
otamot
torrap
nekcihc
noob_saibot
 A = "Tomato Parrot Chicken".lower()
print('\n'.join((i[::-1] for i in A.split())))
Pam_pam
Спасибо
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB