single line pre for numpy
This commit is contained in:
@ -21,21 +21,21 @@ b[2] = 20
|
|||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
```python
|
<pre>
|
||||||
[1 2 3 4 5]
|
[1 2 3 4 5]
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```python
|
<pre>
|
||||||
[1 2 20 4 5]
|
[1 2 20 4 5]
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```python
|
<pre>
|
||||||
[1 20 3 4 5]
|
[1 20 3 4 5]
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -20,27 +20,27 @@ b = np.max(a, axis=1).sum()
|
|||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
```py
|
<pre>
|
||||||
10
|
10
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```py
|
<pre>
|
||||||
7
|
7
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```py
|
<pre>
|
||||||
5
|
5
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```py
|
<pre>
|
||||||
15
|
15
|
||||||
```
|
</pre>
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user