Решение задач Code Wars на Python. Fix My Phone Numbers!. 7 kyu
Phone numbers are stored as strings and comprise 11 digits, eg ’02078834982’ and must always start with a 0.
However, something strange has happened and now all of the phone numbers contain lots of random characters, whitespace and some are not phone numbers at all!
For example, ’02078834982’ has somehow become ’efRFS:)0207ERGQREG88349F82!’ and there are lots more lines that we need to check.
Given a string, you must decide whether or not it contains a valid phone number. If it does, return the corrected phone number as a string ie. ’02078834982’ with no whitespace or special characters, else return “Not a phone number“.
Разбор задач с Code Wars:
Code Wars 8 kyu -
Code Wars 7 kyu -
Разбор задач по Python (Питон):
“Поколение Python“: курс для профессионалов -
“Поколение Python“: курс для продвинутых -
“Поколение Python“: курс для начинающих -
“Программирование на Python“ -
Единоразовая поддержка -
5 views
277
87
4 days ago 00:09:43 0
✌️ ТУТ РЕШЕНИЕ ВАШЕЙ ПРОБЛЕМЫ
5 days ago 00:06:40 0
Не Приходят Уведомления в Ватсап на Телефон. Решение Проблемы (2025)
5 days ago 00:07:49 3
4 эффективные растяжки для здоровья тела: простые упражнения в домашних условиях
5 days ago 00:11:32 0
СКРЫТАЯ точка для улучшения ПАМЯТИ! / Как сохранить ясность ума и повысить концентрацию?
2 weeks ago 00:07:57 4
Чиновник потребовал от жителей не быть иждивенцами и решать проблемы самостоятельно