Public channel ID 78714191865313

python с Дарьей| Репетитор

Python простыми словами — от первых строк кода до уверенного программирования.

Education and training
Channels in category
105 873
This channel's rank
No. 92 635 No. 92 635 · as of 5 December
Open category →
IT and programming
Channels in category
2 440
This channel's rank
No. 1 062 No. 1 062 · as of 5 December
Open category →
Russia
Posts by date

All posts

5 December 2026

By reactions

The «7 days» and «30 days» periods and the whole feed — after free registration. Search, periods longer than 30 days, sorting by reactions and custom dates — with a subscription. Sign up

Loading…

🧠 ПРОВЕРЬ СЕБЯ ЗА 5 МИНУТ!

На этой неделе мы изучали работу со строками в Python. Пора проверить, что запомнилось! 🐍

Всего 5 вопросов — попробуйте ответить без подсказок.
🔍 ВОПРОСЫ
1️⃣ Что делает метод split()?

А) Удаляет пробелы
Б) Разделяет строку на части
В) Переводит текст в нижний регистр

2️⃣ Чем strip() отличается от lower()?

А) Ничем, они делают одно и то же
Б) strip() удаляет пробелы по краям, а lower() меняет регистр букв
В) strip() разделяет строку, а lower() считает символы

3️⃣ Что возвращает оператор in при проверке наличия слова в строке?

А) True или False
Б) Индекс слова
В) Количество повторений

4️⃣ Для чего нужен метод count()?

А) Чтобы удалить слово
Б) Чтобы найти индекс слова
В) Чтобы посчитать количество вхождений

5️⃣ Как узнать количество слов в предложении?

А) Использовать len(text)
Б) Разделить строку методом split(), а затем посчитать длину полученного списка с помощью len()
В) Использовать count() без аргументов

⭐ Бонусное задание

Какой результат выведет код?
text = "Python is cool"

words = text.split()

print(len(words))
💬 Напишите ответы в комментариях в формате: 1Б, 2Б, 3А...

Посмотрим, кто наберёт 5 из 5! 🚀

#Python #ИзучаемPython #ПроверьСебя #Строки #ПрограммированиеДляНачинающих
Views: 5
Go to post Open in MAX Report an inaccuracy
VKontakte Telegram Odnoklassniki
Favorites at datool.ru

Follow the channel in your account

Sign up at datool.ru to add the channel “python с Дарьей| Репетитор” to favorites and track its metrics.

Sign up
For channel owners

Verify your channel

Sign in or sign up at datool.ru, then add our bot to the channel following the instructions in your account. Once ownership is verified, the lock disappears and channel management becomes available.

Sign in or sign up
Channel posts

Post reposts

Report an inaccuracy

Describe what needs fixing. If you have a source, add a link.

You are leaving datool.ru

The link leads to an external website. datool.ru is not responsible for its content — check the address before entering passwords or payment details.

Redirecting in 10 s

Go