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

Older Posts 20 shown
Post #1290 2.25K
Что выведет код?
a = float('inf')
b = a * 10
c = 10 / a
d = a / 10
print(b, c, d)
Post #1288 2.35K
Что выведет код?
from math import isinf, isnan
e = float('inf') + float('nan')
g = float('nan') / float('nan')
print(isinf(e), isinf(g), isnan(e), isnan(g))
Post #1286 2.49K
Что выведет код?
import math
a = float('inf')
b = float('-inf')
c = a - b
d = a + b
print(math.isinf(c), math.isinf(d), math.isnan(c), math.isnan(d))
Post #1282 2.86K
Что выведет код?
a = complex(231, 4076)
b = complex(231, -4076)
c = a * b
print(c.imag)
Post #1280 2.72K
Что выведет код?
x = 10
a = format(x, 'b')
b = format(x, 'o')
c = format(x, 'x')
print(a, b, c)
Post #1277 2.63K
Что выведет код?
import math
nums = [1e+100, 1, -1e+100]
x = math.fsum(nums)
y = sum(nums)
print(x, y)
Post #1275 2.76K
Что выведет код?
from decimal import Decimal
x = 4.2 + 2.1 == 6.3
y = Decimal('4.2') + Decimal('2.1') == Decimal('6.3')
print(x, y)
Post #1273 3.03K
Что выведет код?
a = 111.46
b = round(a, -2)
c = round(a, 1)
print(b + c)
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 →