chore(learn): Applied MDX format to Chinese curriculum files (#40462)

This commit is contained in:
Randell Dawson
2020-12-16 00:37:30 -07:00
committed by GitHub
parent 873fce02a2
commit 9ce4a02a41
1665 changed files with 58741 additions and 88042 deletions

View File

@ -4,46 +4,49 @@ challengeType: 11
videoId: VNWAQbEM-C8
---
## Description
# --question--
<section id='description'>
</section>
## --text--
## Tests
What code would produce the following array?
<section id='tests'>
```py
[[1. 1.]
[1. 1.]
[1. 1.]
[1. 1.]]
```
````yml
question:
text: |
What code would produce the following array?
## --answers--
```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)
```
solution: 1
````
```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
# --hints--
# --solutions--
</section>