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 #1630 · Back to latest

Older Posts 20 shown
Post #1629 2.31K
Что выведет код?
a = None
b = None
a is b is None
Post #1627 2.33K
Что выведет код?
a = None
print(a is None is True)
Post #1625 2.36K
Что выведет код?
from typing import Final
x: Final = 'hi'
x = 'hello'
print(x)
Post #1623 2.65K
  • 👍 19
Post #1622 2.4K
Что выведет код?
print(1 and 2 and 3)
  • 👍 1
Post #1621 2.65K
  • 👍 8
  • 🔥 1
Post #1620 2.44K
Что выведет код?
class A:
x = 1

class B(A):
pass

class C(A):
pass

A.x = 2
B.x = 3

print(B.x, C.x)
  • 👍 2
Post #1619 2.57K
  • 👍 8
  • 🔥 2
Post #1618 2.36K
Что выведет код?
import copy
l = [0, 'hi', [1, 2]]
m1 = copy.deepcopy(l)
m2 = copy.copy(l)
print((l[0] is m2[0]), (l[1] is m1[1]), (l[2] is m1[2]))
  • 👍 2
Post #1617 2.49K
  • 👍 14
Post #1616 2.4K
Что выведет код?
print(round(8.5), round(8.51), round(9.5), end = ' ')
Post #1614 2.37K
Что выведет код?
print(1 or print(2, end = ' '))
Post #1612 2.55K
Что выведет код?
x = {1, 2, 3}
y = {2, 3, 4}
print(x + y)
  • 👍 1
Post #1610 2.37K
Что выведет код?
from random import random
try:
a = random() - 0.5
a = a/0
print(a, end=" ")
except:
print("err", end=" ")
finally:
print(a/a)
Post #1609 2.38K
  • 👍 3
  • 💯 1
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 →