TGViewer
Channel Public Channel
Python Tasks & ML | Задачи по питону и машинному обучению

Python Tasks & ML | Задачи по питону и машинному обучению

@python_tasks

Algorithms, functions, classes, regular expressions, iterators, generators, OOP, exceptions, NumPy, pandas, scikit-learn
https://telega.in/c/python_tasks

Questions — @dina_ladnyuk
Subscribers
8.52K
Photos
30
Videos
1
Links
41
Recent Posts 20 shown
Post #3220 1.03K
Что выведет код?
def f():
import sys
locs = sys._getframe(1).f_locals
setattr(locs['self'], 'xy', 4*locs['x'] + 7*locs['y'])

class A:
def __init__(self, x, y):
self.xy = 2*x + 3*y
f()

a = A(2, 3)
A.xy = 99
print(a.xy)
Post #3218 820
Что выведет код?
def f(x):
if x < 3:
return x
y = filter(f, (0, 1, 2, 3, 4))
print(list(y))
Post #3216 650
Что выведет код?
def func(x):
if x >= 3:
return x
y = filter(func, (1, 2, 3, 4))
print(list(y))
Post #3214 585
Что выведет код?
x = 5
print([y%2 for y in range(6)][x])
Post #3212 553
Что выведет код?
tup = (5, 7, 22, 97)
newtup = tuple(map(lambda x: x + 3, tup))
print(newtup)
Post #3210 495
Что выведет код?
def f(p, q):
return p + q

x = list(map(f, ('a', 'b', 'c'), ('x', 'y', 'z')))
print(x[1])
Post #3208 606
Что выведет код?
s = list(map(lambda x, y: x + y, [1, 2, 3], [4, 5, 6]))
print(s)
Post #3205 545
Что выведет код?
s = list(map(lambda x: x * x, (1, 2, 3, 4)))
print(s)
Post #3202 576
Что выведет код?

class J:
pass

j = J()
setattr(j, 'color', 'red')

print(j.color)
Older posts →

About this channel

How can I read @python_tasks without a Telegram account?
TGViewer shows the public web preview Telegram publishes for Python Tasks & ML | Задачи по питону и машинному обучению: recent posts, photos, videos and the subscriber count, with no app, login or account.
How many subscribers does Python Tasks & ML | Задачи по питону и машинному обучению have?
Python Tasks & ML | Задачи по питону и машинному обучению (@python_tasks) has 8.52K subscribers on Telegram, refreshed roughly every 30 minutes.
Does Python Tasks & ML | Задачи по питону и машинному обучению know I viewed it here?
No. Public channel previews carry no viewer identity, and TGViewer has no accounts or tracking of what you look up.
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →