Feat: add new Markdown parser (#39800)

and change all the challenges to new `md` format.
This commit is contained in:
Oliver Eyton-Williams
2020-11-27 19:02:05 +01:00
committed by GitHub
parent a07f84c8ec
commit 0bd52f8bd1
2580 changed files with 113436 additions and 111979 deletions

View File

@@ -5,46 +5,44 @@ 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
</section>