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

Showing posts older than #1682 · Back to latest

Older Posts 20 shown
Post #1680 2.51K
  • 👍 10
  • 🔥 5
  • 😱 3
Post #1679 2.43K
Что выведет код?
def f(x):
if x < 3:
return x
y = filter(f, (0, 1, 2, 3, 4))
print(list(y))
Post #1678 2.61K
  • 👍 3
  • 😱 1
Post #1677 2.29K
Что выведет код?
def func(x):
if x >= 3:
return x
y = filter(func, (1, 2, 3, 4))
print(list(y))
Post #1676 2.91K
  • 👍 7
  • 👏 1
Post #1675 2.54K
Что выведет код?
x = 5
print([y%2 for y in range(6)][x])
  • 👍 2
Post #1673 2.38K
Что выведет код?
tup = (5, 7, 22, 97)
newtup = tuple(map(lambda x: x + 3, tup))
print(newtup)
  • 👍 2
Post #1670 2.25K
Что выведет код?
def f(p, q):
return p + q

x = list(map(f, ('a', 'b', 'c'), ('x', 'y', 'z')))
print(x[1])
Post #1667 2.08K
Что выведет код?
s = list(map(lambda x, y: x + y, [1, 2, 3], [4, 5, 6]))
print(s)
Post #1666 2.3K
  • 👍 4
  • 🤓 2
Post #1664 2.22K
Что выведет код?
s = list(map(lambda x: x * x, (1, 2, 3, 4)))
print(s)
Post #1663 2.43K
  • 👍 12
Post #1662 3.02K
  • 👍 15
  • 🔥 1
  • 😱 1
Post #1660 2.56K
Что выведет код?
name = {
124: "A",
444: "B",
952: "C"}
user_id = 375
print(name.get(user_id, "D"))
  • 🔥 4
Post #1659 2.53K
  • 😱 12
  • 👍 4
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 →