Python вопросы с собеседований
Вопросы с собеседований по Python @workakkk - админ @machinelearning_interview - вопросы с собесдований по Ml @pro_python_code - Python @data_analysis_ml - анализ данных на Python @itchannels_telegram - 🔥 главное в ит РКН: clck.ru/3FmrFd
Show more📈 Analytical overview of Telegram channel Python вопросы с собеседований
Channel Python вопросы с собеседований (@python_job_interview) in the Russian language segment is an active participant. Currently, the community unites 24 967 subscribers, ranking 5 488 in the Technologies & Applications category and 26 804 in the Russia region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 24 967 subscribers.
According to the latest data from 05 June, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -153 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 6.12%. Within the first 24 hours after publication, content typically collects 3.05% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 527 views. Within the first day, a publication typically gains 762 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 8.
- Thematic interests: Content is focused on key topics such as github, api, собеседование, git, docker.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Вопросы с собеседований по Python
@workakkk - админ
@machinelearning_interview - вопросы с собесдований по Ml
@pro_python_code - Python
@data_analysis_ml - анализ данных на Python
@itchannels_telegram - 🔥 главное в ит
РКН: clck.ru/3FmrFd”
Thanks to the high frequency of updates (latest data received on 06 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.
x = [1, 2, 3]
y = x
x += [4]
print(x)
print(y)
🔢 Варианты ответа:
A)
[1, 2, 3]
B)
[1, 2, 3, 4]
C)
[1, 2, 3, 4]
D)
[1, 2, 3]
✅ Правильный ответ: B
💡 Почему?
- x = [1, 2, 3] и y = x — ссылка на один и тот же список.
- x += [4] модифицирует список на месте.
- Поэтому y тоже видит изменение.
🧠 Подвох — в +=, который работает не как x = x + [...].
def append_to(element, to=[]):
to.append(element)
return to
print(append_to(1))
print(append_to(2))
print(append_to(3, []))
print(append_to(4))
🔢 Варианты ответа:
A)
[2]
[3]
[4]
B)
[1, 2]
[3]
[1, 2, 4]
C)
[1, 2]
[1, 2, 3]
[1, 2, 3, 4]
D)
[1, 2]
[3]
[4]
✅ Правильный ответ: B
💡 Почему?
В Python дефолтные аргументы вычисляются один раз — при определении функции.
Список to=[] сохраняется и используется повторно, если явно не передан другой.
Поэтому append_to(1), append_to(2) и append_to(4) работают с одним и тем же списком.
def func(a, L=[]):
L.append(a)
return L
print(func(1))
print(func(2))
print(func(3))
Варианты ответа:
A)
[2]
[3]
B)
[1, 2]
[1, 2, 3]
C)
[1]
[1]
D)
[2]
[3]
---
✅ Правильный ответ: B
Почему:
Списки по умолчанию (L=[]) в Python инициализируются один раз при определении функции, а не каждый раз при вызове. Поэтому изменения сохраняются между вызовами func. Это классическая "ловушка" со значениями по умолчанию!
@python_job_interview
def make_funcs():
funcs = []
for i in range(3):
def wrapper(x=i):
return lambda: x
funcs.append(wrapper())
return funcs
a, b, c = make_funcs()
print(a(), b(), c())
❓ Варианты ответа:
A)0 1 2
В) 2 2 2
C)0 0 0
D)Ошибка на этапе выполнения
✅ Ответ: 0 1 2
📘 Объяснение:
🔹 Цикл for i in range(3) проходит по значениям 0, 1, 2.
🔹 В каждой итерации вызывается wrapper(x=i) — это копирует текущее значение i в локальную переменную x.
🔹 Затем возвращается lambda: x, которая запоминает это конкретное значение x.
🔹 В итоге:
a() → 0
b() → 1
c() → 2
Если бы мы не использовали x=i по умолчанию, а писали просто lambda: i, все функции замкнули бы одну и ту же переменную i, и на момент вызова она бы уже была равна 3.
@pythonl
Available now! Telegram Research 2025 — the year's key insights 
