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

Older Posts 20 shown
Post #886 2.39K
Что выведет код?
import numpy as np
a = np.arange(2)
b = np.arange(1, 2, 1)
print(a == b)
Post #884 2.25K
Что выведет код?
import numpy as np
a = np.array(((1, 0, 1), (0, 1, 0)))
print(a.size)
Post #882 2.27K
Что выведет код?
import numpy as np
a = np.array(((1, 0, 1), (0, 1, 0)))
print(a.ndim)
Post #880 2.28K
Что выведет код?
import numpy as np
a = np.array(((1, 0, 1), (0, 1, 0)))
print(a.shape)
Post #878 2.34K
Что выведет код?
import numpy as np
x = np.fromfunction(lambda i, j: 2 * i * j, (3, 3), dtype=int)
y = np.sum(x[1])
print(y)
Post #875 2.46K
Что выведет код?
def f(i, j):
return i * j

x = np.fromfunction(f, (3, 3), dtype=int)
y = np.sum(x)
print(y)
Post #873 2.47K
Что выведет код?
import numpy as np
x = np.linspace(0, 5, 5, endpoint=False)
y = np.linspace(0, 5, 5, endpoint=True)
print(x.size - y.size)
Post #870 2.27K
Что выведет код?
import numpy as np
x, dx = np.linspace(0, 8, 9, retstep=True)
print(dx)
Post #869 2.4K
  • 👍 1
Post #868 2.3K
Что выведет код?
import numpy as np
a = np.arange(1, 2, 1)
b = np.linspace(1, 2, 1, dtype=int)
print(a + b)
Post #866 2.3K
Что выведет код?
import numpy as np
a = np.array((100, 101, 102, 103))
b = np.zeros_like(a)
print(np.sum(b))
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 →