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.5K
Photos
30
Videos
1
Links
41

Showing posts older than #2422 · Back to latest

Older Posts 20 shown
Post #2421 1.34K
  • 🤔 5
  • 👍 1
Post #2420 1.1K
Что выведет код?
x, y = ord("A"), ord("А")
assert(x << 4 == y)
print(chr(y + 1))
  • 👎 8
Post #2417 1.21K
Что выведет код?
from copy import deepcopy
d = {"a": [1], "b": 2}
d2 = deepcopy(d)
d2["a"] += [2]
d2["b"] += 3
print(sum(d["a"]) + d["b"])
Post #2415 1.12K
Что выведет код?
d = {"a": [1], "b": 2}
d2 = d.copy()
d2["a"] = d2["a"] + [2]
d2["b"] += 3
print(sum(d["a"]) + d["b"])
  • 👍 2
Post #2413 1.54K
Что выведет код?
d = {"a": [1], "b": 2}
d2 = d.copy()
d2["a"] += [2]
d2["b"] += 3
print(sum(d["a"]) + d["b"])
  • 👍 1
Post #2411 1.2K
Что выведет код?
ord(chr("A"))
Post #2409 1.05K
Что выведет код?
bytes(b"hello")[::-4]*2
Post #2406 1.19K
Что выведет код?
d1 = {'x': 2}
d2 = {}
d1.setdefault("x", 1)
d2.setdefault("x", 2)
print(d1 == d2)
  • 👍 2
Post #2404 1.24K
Что выведет код?
bytes(b"aB") + bytes(b"Cd").upper()
  • 🔥 1
Post #2402 1.07K
Что выведет код?
chr(ord(8) - ord(6))
Older posts →
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 →