feat(curriculum): add python multiple choice questions (#38890)
This commit is contained in:
committed by
GitHub
parent
18d2dca05b
commit
3567813c51
@@ -15,12 +15,35 @@ videoId: VNWAQbEM-C8
|
||||
|
||||
```yml
|
||||
question:
|
||||
text: Question
|
||||
text: |
|
||||
What code would produce the following array?:
|
||||
|
||||
```
|
||||
[[1. 1.]
|
||||
[1. 1.]
|
||||
[1. 1.]
|
||||
[1. 1.]]
|
||||
```
|
||||
answers:
|
||||
- one
|
||||
- two
|
||||
- three
|
||||
solution: 3
|
||||
- |
|
||||
```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
|
||||
```
|
||||
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user