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 307 subscribers, ranking 6 341 in the Technologies & Applications category and 2 994 in the Ukraine region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 20 307 subscribers.
According to the latest data from 31 August, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -197 over the last 30 days and by -5 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 10.23%. 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 2 077 views. Within the first day, a publication typically gains 1 100 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 13.
- 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 01 September, 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.
CustomDict реалізує метод delitem(self, key), що дозволяє видаляти елементи зі словника, використовуваного всередині об'єкта.
Коли ми використовуємо оператор del my_dict['b'], викликається метод my_dict.delitem('b'), який видаляє елемент з ключем 'b' із словника _data.
class CustomDict:
def __init__(self):
self._data = {}
def __setitem__(self, key, value):
self._data[key] = value
def __getitem__(self, key):
return self._data[key]
def __delitem__(self, key):
del self._data[key]
# Створюємо об'єкт CustomDict
my_dict = CustomDict()
# Додаємо елементи до словника
my_dict['a'] = 1
my_dict['b'] = 2
my_dict['c'] = 3
# Виводимо словник
print(my_dict._data) # Виведе: {'a': 1, 'b': 2, 'c': 3}
# Видаляємо елемент зі словника
del my _dict['b']
# Перевіряємо зміни
print(my_dict._data) # Виведе: ('а': 1, 'с': 3}
#delitem // #theory // Pythona = ['1', '2', '3']
b = ["1", "2", "3"]
print(a == b)
👉 Відповідь
#Python // #practice // Архів книгFlexx — набір інструментів, зроблених на чистому Python. Він дає змогу писати код графічних інтерфейсів просто на Python і на ходу генерувати JS за допомогою транслятора PScript.
👉 Подробиці на GitHub
#Flexx // #news // Pythonshuffle() приймає послідовність — наприклад, список — і реорганізує порядок елементів.
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