PYTHONJUNIORJOB Telegram 849
#вопрос245

Создайте функцию, которая принимает строку. Если в строке все символы в верхнем регистре, преобразуйте их в нижний регистр и добавьте восклицательный знак в конце.

Примеры:

normalize("CAPS LOCK DAY IS OVER") ➞ "Caps lock day is over!"

normalize("Today is not caps lock day.") ➞ "Today is not caps lock day."

normalize("Let us stay calm, no need to panic.") ➞ "Let us stay calm, no need to panic."



tgoop.com/pythonjuniorjob/849
Create:
Last Update:

#вопрос245

Создайте функцию, которая принимает строку. Если в строке все символы в верхнем регистре, преобразуйте их в нижний регистр и добавьте восклицательный знак в конце.

Примеры:

normalize("CAPS LOCK DAY IS OVER") ➞ "Caps lock day is over!"

normalize("Today is not caps lock day.") ➞ "Today is not caps lock day."

normalize("Let us stay calm, no need to panic.") ➞ "Let us stay calm, no need to panic."

BY Python вопросы на собеседовании с ответами


Share with your friend now:
tgoop.com/pythonjuniorjob/849

View MORE
Open in Telegram


Telegram News

Date: |

Find your optimal posting schedule and stick to it. The peak posting times include 8 am, 6 pm, and 8 pm on social media. Try to publish serious stuff in the morning and leave less demanding content later in the day. So far, more than a dozen different members have contributed to the group, posting voice notes of themselves screaming, yelling, groaning, and wailing in various pitches and rhythms. End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance. Some Telegram Channels content management tips The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said.
from us


Telegram Python вопросы на собеседовании с ответами
FROM American