Python 🇺🇦
▪️Вивчаємо Python разом. ▪️Високооплачувана професія ▪️Допомагаємо з пошуком роботи Зв'язок: @Ekater1na_admin
Show more📈 Analytical overview of Telegram channel Python 🇺🇦
Channel Python 🇺🇦 in the Ukrainian language segment is an active participant. Currently, the community unites 20 886 subscribers, ranking 6 480 in the Technologies & Applications category and 2 948 in the Ukraine region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 20 886 subscribers.
According to the latest data from 09 June, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -175 over the last 30 days and by -3 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 9.31%. Within the first 24 hours after publication, content typically collects 5.42% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 944 views. Within the first day, a publication typically gains 1 133 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 10.
- Thematic interests: Content is focused on key topics such as шпаргалка, mcp, user1, python'er, бібліотека.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“▪️Вивчаємо Python разом.
▪️Високооплачувана професія
▪️Допомагаємо з пошуком роботи
Зв'язок: @Ekater1na_admin”
Thanks to the high frequency of updates (latest data received on 10 June, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
shuffle() приймає послідовність — наприклад, список — і реорганізує порядок елементів.
import random
mylist = ["apple", "banana", "cherry"]
random.shuffle(mylist)
print(mylist)
# ['cherry', 'banana', 'apple']
Зверніть увагу: цей метод змінює початковий список. shuffle() не повертає новий перелік.
#shuffle // #practice // Pythondef foo():
lst.sort()
lst = list('4572')
foo()
print(lst)
👉 Відповідь
#Python // #practice // Архів книг__str__ та __repr__ використовуються для отримання рядкового представлення об'єкта. Давайте розберемося, в чому різниця між ними.
class Complex:
def __init__(self, real, imag):
self.real = real
self.imag = imag
def __repr__(self):
return f'Complex({self.real), {self.imag})'
def __str__(self):
return f'{self.real} + {self.imag}i'
t = Complex(10, 20)
print(t)
# Output: 10 + 20i
print([t, 1, 2])
# Output: [Complex(10, 20), 1, 2]
Функція print() та вбудована функція str() використовують метод __str__ для відображення рядкового представлення об'єкта, а вбудована функція repr() — метод __repr__.
#str #repr // #theory // Pythoncapitalize() повертає копію вихідного рядка, перетворюючи перший символ рядка на заголовну літеру, проте інші символи в рядку перетворюються на малі літери.
txt = "hello, and welcome to my world."
x = txt.capitalize()
print(x)
# Hello, and welcome to my world.
txt1 = "36 is my age."
x1 = txt1.capitalize()
print(x1)
# 36 is my age.
txt2 = "python is FUN!"
x2 = txt2.capitalize()
print(x2)
# Python is fun!
#capitalize // #practice // PythonЦя стаття допоможе краще розібратись, який ORM вам краще підходить в роботі на Python: SQLAlchemy чи Django ORM.Мова: 🇺🇦 #SQLAlchemy #Django // #theory // Python
math.isqrt() округляє квадратний корінь у меншу сторону до найближчого цілого числа.
import math
print(math.sqrt(10)) # 3.1622776601683795
print(math.sqrt(12)) # 3.4641016151377544
print(math.sqrt(68)) # 8.246211251235321
print(math.sqrt(100)) # 10.0
print(math.isqrt(10)) # 3
print(math.isqrt(12)) # 3
print(math.isqrt(68)) # 8
print(math.isqrt(100)) # 10
Число має бути більшим або рівним 0. В даному прикладі продемонстровано відмінність isqrt від sqrt.
#isqrt #sqrt // #practice // Pythonrpartition() шукає останню появу вказаного рядка-аргументу s розбиває рядок на кортеж, що містить три елементи.
txt = "I could eat bananas all day, bananas are my favorite fruit"
x = txt.partition("bananas")
print(x)
# ('I could eat bananas all day, ',
# 'bananas',
# ' are my favorite fruit')
Перший елемент містить частину перед вказаним рядком, другий елемент — вказаний рядок, а третій — частину після рядка.
#rpartition // #practice // Pythonsetitem(self, key, value) може викидати винятки TypeError та KeyError.
>>> list_object = [1, 2, 3, 4, 5]
>>> list_object[0] = 78
>>> print(list_object)
... [78, 2, 3, 4, 5]
>>>
>>> dict_object = {"key0": True, "key1": False}
>>> dict_object ["key0"] = False
>>> print(dict_object)
... {"key0": False, "key1": False}
#setitem // #theory // PythonСимулятор підтримує широкий спектр комплектуючих: мікроконтролери, датчики, дисплеї та інше.👉 Спробувати #Wokwi #Arduino // #news // Python
Counter з бібліотеки collections.
>>> from collections import Counter
>>>
>>> a = ['a', 'b', 'c', 'a', 'b', 'c', 'b', 'b', 'd', 'e', 'a']
>>> cnt = Counter(a)
>>> cnt.most_common(3)
[('b', 4), ('a', 3), ('c', 2)]
Метод Counter.most_common(x) повертає x кортежів, у яких перше значення — елемент, а друге — кількість його повторень.
#Counter // #practice // Python📉 Якщо ви не оновлювали свої навички останній рік – ринок уже змінився без вас. 📉 Якщо вам не підіймали зарплату – компанія не бачить у вас перспективи. 📉 Якщо робота стала рутиною – ви вже втратили конкурентну перевагу.Як вирватися з цього замкненого кола? Дамо конкретний план дій на вебінарі «Як залишитися в IT». ⌚️ Коли? 11 лютого о 19:00. ▶️Аналітика ринку: прогнози щодо зарплат, вакансій та найму у 2025 році. ▶️Нові вимоги до ІТ-фахівців: що потрібно, щоб отримати кращу роботу? ▶️Реальні кейси: як європейська магістерська освіта допомагає вирватися вперед. 👉 Реєструйтеся зараз, змагайся за грант на IT магістратуру в Neoversity!
TPOT — це автоматичне створення та оптимізація конвеєра машинного навчання. Наведений нижче приклад коду демонструє, як використовувати TPOT для цієї мети:
from tpot import TPOTClassifier
from sklearn.datasets import load_ iris
from sklearn.model_selection import train_test_split
# Завантажуємо набір даних iris
iris = load_iris()
# Розділяємо набір даних на набори для навчання і тестування
X_train, X_test, y_train, _test = train_test_split(iris.data, iris.target, train_size=0.75, test_size=0.25)
# Створюємо класифікатор TPOT
tpot = TPOTClassifier(generations=5, population_size=50, verbosity=2)
# Пристосовуємо класифікатор до навчальних даних
tpot.fit(X_train, y_train)
# Оцінюємо класифікатор за даними тестування
print(tpot.score(X_test, y_test))
# Експортуємо оптимізований конвеєр як сценарій Python
tpot.export('tpot_iris_pipeline.py')
У цьому прикладі ми імпортуємо клас TPOTClassifier та завантажуємо набір даних iris із бібліотеки Scikit-Learn. За допомогою функції train_test_split ми поділяємо набір даних на навчальний та тестовий.
Далі створюється екземпляр класифікатора TPOT із заданими параметрами generations, population_size та verbosity. Класифікатор навчається за допомогою методу fit та оцінюється за допомогою методу score.
❗️Наприкінці оптимізований конвеєр експортується як скрипт Python за допомогою методу export.
#TPOT // #theory // PythonRecursionError під час створення рекурсивних алгоритмів. Але за допомогою модуля sys можна переглянути і навіть змінити максимальну глибину рекурсії.
import sys
sys.getrecursionlimit()
# 1000
sys.setrecursionlimit(2000)
sys.getrecursionlimit()
# 2000
Хоча робити це трохи небезпечно, оскільки кожен новий виклик займає багато пам'яті. І взагалі, краще намагатися використати не рекурсію, а звичайні цикли.
#sys // #practice // Python
Available now! Telegram Research 2025 — the year's key insights 
