Adding language to code fences and pre to console logs (#40603)

* added languages to prismjs

* added language to code fences for python for everybody

* multiline pre to python for everybody questions

* multiline pre for data analysis with python

* multiline pre in numpy questions

* single line pre for python for everybody

* single line pre for data analysis with python

* single line pre for numpy

* Revert "multiline pre in numpy questions"

This reverts commit af1a02cdd3.

* fix unneded escaping

commit suggestions from code review

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

* Revert "single line pre for numpy"

This reverts commit 5f90981108.

* revert changes to snippet that have a language

* one last code fence to pre

* Revert "fix unneded escaping
"

This reverts commit 64c84a9213.

* Revert "single line pre for data analysis with python"

This reverts commit 3bccaff753.

* Revert "single line pre for python for everybody"

This reverts commit 03a5379062.

* remove unnecessary escape

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
This commit is contained in:
Ilenia
2021-01-21 19:12:42 +01:00
committed by GitHub
parent 392005154c
commit a38922536c
18 changed files with 100 additions and 134 deletions

View File

@ -31,47 +31,35 @@ jane()
## --answers--
Zap
<pre>Zap
ABC
jane
fred
jane
jane</pre>
---
Zap
<pre>Zap
ABC
Zap
Zap</pre>
---
ABC
<pre>ABC
Zap
jane
jane</pre>
---
ABC
<pre>ABC
Zap
ABC
ABC</pre>
---
<pre>Zap
Zap
Zap
Zap
Zap</pre>
## --video-solution--

View File

@ -27,27 +27,23 @@ for key in counts:
## --answers--
<pre>annie 42
jan 100</pre>
---
<pre>chuck 1
annie 42
jan 100
jan 100</pre>
---
chuck 1
annie 42
jan 100
<pre>chuck 1</pre>
---
chuck 1
---
\[Error]
<pre>[Error]</pre>
## --video-solution--
1

View File

@ -23,35 +23,27 @@ while True:
## --answers--
0
<pre>0
1
2
2</pre>
---
0
<pre>0
1
2
3
3</pre>
---
1
2
<pre>1
2</pre>
---
1
<pre>1
2
3
3</pre>
## --video-solution--

View File

@ -14,31 +14,31 @@ What SQL command would you use to retrieve all users that have the email address
## --answers--
```
```sql
SELECT Users WHERE email="quincy@freecodecamp.org"
```
---
```
```sql
SELECT Users WHERE email IS "quincy@freecodecamp.org"
```
---
```
```sql
SELECT ALL Users WHERE email="quincy@freecodecamp.org"
```
---
```
```sql
SELECT * FROM Users WHERE email IS "quincy@freecodecamp.org"
```
---
```
```sql
SELECT * FROM Users WHERE email="quincy@freecodecamp.org"
```

View File

@ -33,39 +33,33 @@ q.party()
## --answers--
<pre>
Quincy constructed
Miya constructed
Quincy party count 1
Miya party count 2
Quincy party count 3
</pre>
---
<pre>
Quincy constructed
Miya constructed
Quincy party count 1
Miya party count 1
Quincy party count 2
</pre>
---
<pre>
Quincy constructed
Quincy party count 1
Quincy party count 2
Miya constructed
Miya party count 1
</pre>
## --video-solution--

View File

@ -26,27 +26,31 @@ an.party()
## --answers--
<pre>
So far 1
So far 2
</pre>
---
<pre>
0
0
</pre>
---
<pre>
2
2
</pre>
---
<pre>
2
4
</pre>
## --video-solution--

View File

@ -19,43 +19,39 @@ for n in "banana":
## --answers--
<pre>
n
n
</pre>
---
<pre>
0
1
</pre>
---
<pre>
0
1
2
3
4
5
</pre>
---
<pre>
b
a
n
a
n
a
</pre>
## --video-solution--

View File

@ -23,35 +23,35 @@ for (k,i) in d.items():
## --answers--
<pre>
k i
k i
k i
</pre>
---
<pre>
quincy 0
beau 1
kris 2
</pre>
---
<pre>
quincy 1
beau 5
kris 9
</pre>
---
<pre>
1 quincy
5 beau
9 kris
</pre>
## --video-solution--