/
sejeenn
/
python_basic
Обзор
Документация
Войти
/
sejeenn
/
python_basic
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Module20/02_universal_prog_2/main.py
17 строк
461 B
Eugene Vorontsov
Copy repo python basic
03 фев 2025, 20:23
03 фев 2025, 20:23
a8fce4a
Код
Авторство
О чём код?
def crypto(checking_list): return [value for index, value in enumerate(checking_list) if is_prime(index)] def is_prime(index): if index > 1: simple = 0 for items in range(2, index // 2 + 1): if index % items == 0: simple = simple + 1 if simple <= 0: return True else: return False print('Ответ в консоли:', crypto('О Дивный Новый мир!'))