chore(i18n,curriculum): processed translations - new ukrainian (#44447)

This commit is contained in:
camperbot
2021-12-10 11:14:24 +05:30
committed by GitHub
parent 8651ee1797
commit 0473dedf47
1663 changed files with 156692 additions and 1 deletions

View File

@@ -0,0 +1,54 @@
---
id: 5e9a0a8e09c5df3cc3600ed4
title: 'Доступ та зміна елементів, рядків, стовпців'
challengeType: 11
videoId: v-7Y7koJ_N0
bilibiliIds:
aid: 590517748
bvid: BV1Eq4y1f7Fa
cid: 409025392
dashedName: accessing-and-changing-elements-rows-columns
---
# --question--
## --text--
Який код змінить значення у 3 стовпці обох масивів Numpy на 20?
```py
a = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
# Output:
# [[ 1 2 20 4 5]
# [ 6 7 20 9 10]]
```
## --answers--
```python
a[:, 3] = 20
```
---
```python
a[2, :] = 20
```
---
```python
a[:, 2] = 20
```
---
```python
a[1, 2] = 20
```
## --video-solution--
3

View File

@@ -0,0 +1,49 @@
---
id: 5e9a0a8e09c5df3cc3600ed3
title: Основи Numpy
challengeType: 11
videoId: f9QrZrKQMLI
bilibiliIds:
aid: 763014202
bvid: BV1K64y1a7bu
cid: 409025169
dashedName: basics-of-numpy
---
# --question--
## --text--
Що буде друкувати наступний код?
```python
b = np.array([[1.0,2.0,3.0],[3.0,4.0,5.0]])
print(b)
```
## --answers--
```python
[[1.0 2.0 3.0]
[3.0 4.0 5.0]]
```
---
```python
[[1. 2. 3.]
[3. 4. 5.]]
```
---
```python
[[1. 3.]
[2. 4.]
[3. 5.]
```
## --video-solution--
2

View File

@@ -0,0 +1,48 @@
---
id: 5e9a0a8e09c5df3cc3600ed7
title: Попередження про копіювання масивів
challengeType: 11
videoId: iIoQ0_L0GvA
bilibiliIds:
aid: 633008569
bvid: BV1Bb4y127fb
cid: 409026161
dashedName: copying-arrays-warning
---
# --question--
## --text--
Яке значення `a` після запуску наступного коду?
```py
import numpy as np
a = np.array([1, 2, 3, 4, 5])
b = a
b[2] = 20
```
## --answers--
```python
[1 2 3 4 5]
```
---
```python
[1 2 20 4 5]
```
---
```python
[1 20 3 4 5]
```
## --video-solution--
2

View File

@@ -0,0 +1,65 @@
---
id: 5e9a0a8e09c5df3cc3600ed6
title: Задача з ініціалізації масиву
challengeType: 11
videoId: 0jGfH8BPfOk
bilibiliIds:
aid: 763027834
bvid: BV1w64y1a7eo
cid: 409025878
dashedName: initialize-array-problem
---
# --question--
## --text--
Який код створить наступний масив?
```py
[[0. 0. 0. 0. 0. 0. 0.]
[0. 1. 1. 1. 1. 1. 0.]
[0. 1. 1. 1. 1. 1. 0.]
[0. 1. 1. 5. 1. 1. 0.]
[0. 1. 1. 1. 1. 1. 0.]
[0. 1. 1. 1. 1. 1. 0.]
[0. 0. 0. 0. 0. 0. 0.]]
```
## --answers--
```py
output = np.ones((7, 7))
z = np.zeros((5, 5))
z[2, 2] = 5
output[1:1, -1:-1] = z
```
---
```py
output = np.zeros((7,7))
z = np.ones((5, 5))
z[2, 2] = 5
output[1:-1, 1:-1] = z
```
---
```py
output = np.ones((7, 7))
z = np.zeros((5, 5))
z[3, 3] = 5
output[1:-1, 1:-1] = z
```
## --video-solution--
2

View File

@@ -0,0 +1,48 @@
---
id: 5e9a0a8e09c5df3cc3600ed5
title: Ініціалізація різних масивів
challengeType: 11
videoId: CEykdsKT4U4
bilibiliIds:
aid: 718044756
bvid: BV1MQ4y1k7BB
cid: 409025638
dashedName: initializing-different-arrays
---
# --question--
## --text--
Що буде виведено на екран у результаті наступного коду?
```py
a = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
print(np.full_like(a, 100))
```
## --answers--
```py
[[100 100 100 100 100]]
```
---
```py
[[100 100 100 100 100]
[100 100 100 100 100]]
```
---
```py
[[ 1 2 3 4 5]
[ 6 7 20 9 10]]
```
## --video-solution--
2

View File

@@ -0,0 +1,60 @@
---
id: 5e9a0a8e09c5df3cc3600eda
title: Завантаження даних і складне індексування
challengeType: 11
videoId: tUdBZ7pF8Jg
bilibiliIds:
aid: 720524642
bvid: BV1xQ4y1r7mu
cid: 409027117
dashedName: loading-data-and-advanced-indexing
---
# --question--
## --text--
Дано файл з назвою `data.txt` та наступним вмістом:
<pre>
29,97,32,100,45
15,88,5,75,22
</pre>
Який код створить наступний масив?
```py
[29. 32. 45. 15. 5. 22.]
```
## --answers--
```py
filedata = np.genfromtxt('data.txt', delimiter=',')
output = np.any(filedata < 50)
print(output)
```
---
```py
filedata = np.genfromtxt('data.txt', delimiter=',')
output = np.all(filedata < 50, axis=1)
print(output)
```
---
```py
filedata = np.genfromtxt('data.txt', delimiter=',')
output = filedata[filedata < 50]
print(output)
```
## --video-solution--
3

View File

@@ -0,0 +1,53 @@
---
id: 5e9a0a8e09c5df3cc3600ed8
title: Математика
challengeType: 11
videoId: 7txegvyhtVk
bilibiliIds:
aid: 890533226
bvid: BV1KP4y1h733
cid: 409026503
dashedName: mathematics
---
# --question--
## --text--
Яким буде значення `b` після застосування наступного коду?
```py
import numpy as np
a = np.array(([1, 2, 3, 4, 5], [6, 7, 8, 9, 10]))
b = np.max(a, axis=1).sum()
```
## --answers--
```py
10
```
---
```py
7
```
---
```py
5
```
---
```py
15
```
## --video-solution--
4

View File

@@ -0,0 +1,53 @@
---
id: 5e9a0a8e09c5df3cc3600ed9
title: Реорганізація масивів
challengeType: 11
videoId: VNWAQbEM-C8
bilibiliIds:
aid: 548035655
bvid: BV1fq4y1N7aC
cid: 409026755
dashedName: reorganizing-arrays
---
# --question--
## --text--
Який код створить наступний масив?
```py
[[1. 1.]
[1. 1.]
[1. 1.]
[1. 1.]]
```
## --answers--
```py
a = np.ones((2, 4))
b = a.reshape((4, 2))
print(b)
```
---
```py
a = np.ones((2, 4))
b = a.reshape((2, 4))
print(b)
```
---
```py
a = np.ones((2, 4))
b = a.reshape((8, 1))
print(b)
```
## --video-solution--
1

View File

@@ -0,0 +1,38 @@
---
id: 5e9a0a8e09c5df3cc3600ed2
title: Що таке NumPy
challengeType: 11
videoId: 5Nwfs5Ej85Q
bilibiliIds:
aid: 293086867
bvid: BV1Tf4y1E7QZ
cid: 409024791
dashedName: what-is-numpy
---
# --question--
## --text--
Чому числові масиви NumPy швидші, ніж звичайні масиви Python?
## --answers--
Числові масиви NumPy не проходить перевірку типу під час ітерації через об'єкти.
---
Числові масиви NumPy використовують сталі типи.
---
Числові масиви NumPy використовують безперервну пам'ять.
---
Усе перелічене вище.
## --video-solution--
4