feat(curriculum): add python multiple choice questions (#38890)

This commit is contained in:
Kristofer Koishigawa
2020-05-28 22:40:36 +09:00
committed by GitHub
parent 18d2dca05b
commit 3567813c51
98 changed files with 1118 additions and 398 deletions

View File

@@ -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>