chore(learn): Applied MDX format to Chinese curriculum files (#40462)
This commit is contained in:
@ -4,45 +4,49 @@ challengeType: 11
|
||||
videoId: 7txegvyhtVk
|
||||
---
|
||||
|
||||
## Description
|
||||
# --question--
|
||||
|
||||
<section id='description'>
|
||||
</section>
|
||||
## --text--
|
||||
|
||||
## Tests
|
||||
What is the value of `b` after running the following code?
|
||||
|
||||
<section id='tests'>
|
||||
```py
|
||||
import numpy as np
|
||||
|
||||
````yml
|
||||
question:
|
||||
text: |
|
||||
What is the value of `b` after running the following code?
|
||||
a = np.array(([1, 2, 3, 4, 5], [6, 7, 8, 9, 10]))
|
||||
b = np.max(a, axis=1).sum()
|
||||
```
|
||||
|
||||
```py
|
||||
import numpy as np
|
||||
## --answers--
|
||||
|
||||
a = np.array(([1, 2, 3, 4, 5], [6, 7, 8, 9, 10]))
|
||||
b = np.max(a, axis=1).sum()
|
||||
```
|
||||
```py
|
||||
10
|
||||
```
|
||||
|
||||
answers:
|
||||
- |
|
||||
```py
|
||||
10
|
||||
```
|
||||
- |
|
||||
```py
|
||||
7
|
||||
```
|
||||
- |
|
||||
```py
|
||||
5
|
||||
```
|
||||
- |
|
||||
```py
|
||||
15
|
||||
```
|
||||
solution: 4
|
||||
````
|
||||
---
|
||||
|
||||
```py
|
||||
7
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```py
|
||||
5
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```py
|
||||
15
|
||||
```
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
# --solutions--
|
||||
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user