TGViewer
Machinelearning tests Machinelearning tests @machinelearningtest · 661 subscribers
Post #171 460
Что выведет код?
class X:
def __init__(self, l):
self.l = l
def __iter__(self):
return (x for x in self.l)
a = X([1, 2])
b = X([3, 4])
print(*chain(a, a, b, b))
More from @machinelearningtest
  1. Apr 16, 2025❓ Что выведет следующий код на Python (модуль statistics)? import statistics as stats impo…
  2. Jul 25, 2024Post #200
  3. Jul 25, 2024Что выведет код? ((lambda x: (lambda y: x ** y)) (3)) (2)
  4. Jul 18, 2024Post #198
  5. Jul 18, 2024Что выведет код? import sys f = lambda x: list(map(sys.stdout.write, x)) t = f(['1', '2',…
  6. Jul 18, 2024Post #196
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 →