Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a07f84c8ec
						
					
				
				
					commit
					0bd52f8bd1
				
			@@ -5,65 +5,74 @@ challengeType: 11
 | 
			
		||||
videoId: nLDychdBwUg
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=ksvGhDsjtpw)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following Python program print out?:
 | 
			
		||||
    ```python
 | 
			
		||||
    def fred():
 | 
			
		||||
        print("Zap")
 | 
			
		||||
    def jane():
 | 
			
		||||
        print("ABC")
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
    jane()
 | 
			
		||||
    fred()
 | 
			
		||||
    jane()
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Zap
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
        ABC
 | 
			
		||||
What will the following Python program print out?:
 | 
			
		||||
 | 
			
		||||
        jane
 | 
			
		||||
```python
 | 
			
		||||
def fred():
 | 
			
		||||
    print("Zap")
 | 
			
		||||
def jane():
 | 
			
		||||
    print("ABC")
 | 
			
		||||
 | 
			
		||||
        fred
 | 
			
		||||
 | 
			
		||||
        jane
 | 
			
		||||
    - |
 | 
			
		||||
        Zap
 | 
			
		||||
 | 
			
		||||
        ABC
 | 
			
		||||
 | 
			
		||||
        Zap
 | 
			
		||||
    - |
 | 
			
		||||
        ABC
 | 
			
		||||
 | 
			
		||||
        Zap
 | 
			
		||||
 | 
			
		||||
        jane
 | 
			
		||||
    - |
 | 
			
		||||
        ABC
 | 
			
		||||
 | 
			
		||||
        Zap
 | 
			
		||||
 | 
			
		||||
        ABC
 | 
			
		||||
    - |
 | 
			
		||||
        Zap
 | 
			
		||||
 | 
			
		||||
        Zap
 | 
			
		||||
 | 
			
		||||
        Zap
 | 
			
		||||
  solution: 4
 | 
			
		||||
jane()
 | 
			
		||||
fred()
 | 
			
		||||
jane()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
ABC
 | 
			
		||||
 | 
			
		||||
jane
 | 
			
		||||
 | 
			
		||||
fred
 | 
			
		||||
 | 
			
		||||
jane
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
ABC
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
ABC
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
jane
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
ABC
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
ABC
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
Zap
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,45 +5,52 @@ challengeType: 11
 | 
			
		||||
videoId: dZXzBXUxxCs
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=EhQxwzyT16E" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=EhQxwzyT16E)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which does the same thing as the following code?:
 | 
			
		||||
    ```python
 | 
			
		||||
    lst = []
 | 
			
		||||
    for key, val in counts.items():
 | 
			
		||||
        newtup = (val, key)
 | 
			
		||||
        lst.append(newtup)
 | 
			
		||||
    lst = sorted(lst, reverse=True)
 | 
			
		||||
    print(lst)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        print( sorted( [ (v,k) for k,v in counts.items() ], reverse=True ) )
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        print( [ (k,v) for k,v in counts.items().sorted() ] )
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        print( sorted( [ (v,k) for k,v in counts.keys() ] ) )
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        print( [ (k,v) for k,v in counts.values().sort() ] )
 | 
			
		||||
        ```
 | 
			
		||||
  solution: 1
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Which does the same thing as the following code?:
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
lst = []
 | 
			
		||||
for key, val in counts.items():
 | 
			
		||||
    newtup = (val, key)
 | 
			
		||||
    lst.append(newtup)
 | 
			
		||||
lst = sorted(lst, reverse=True)
 | 
			
		||||
print(lst)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
print( sorted( [ (v,k) for k,v in counts.items() ], reverse=True ) )
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
print( [ (k,v) for k,v in counts.items().sorted() ] )
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
print( sorted( [ (v,k) for k,v in counts.keys() ] ) )
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
print( [ (k,v) for k,v in counts.values().sort() ] )
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,45 +5,45 @@ challengeType: 11
 | 
			
		||||
videoId: gz_IfIsZQtc
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which code is indented correctly to print "Yes" if x = 0 and y = 10?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which code is indented correctly to print "Yes" if x = 0 and y = 10?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        if 0 == x:
 | 
			
		||||
        if y == 10:
 | 
			
		||||
        print("Yes")
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        if 0 == x:
 | 
			
		||||
            if y == 10:
 | 
			
		||||
            print("Yes")
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        if 0 == x:
 | 
			
		||||
        if y == 10:
 | 
			
		||||
            print("Yes")
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        if 0 == x:
 | 
			
		||||
            if y == 10:
 | 
			
		||||
                print("Yes")
 | 
			
		||||
        ```
 | 
			
		||||
  solution: 4
 | 
			
		||||
```python
 | 
			
		||||
if 0 == x:
 | 
			
		||||
if y == 10:
 | 
			
		||||
print("Yes")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
if 0 == x:
 | 
			
		||||
    if y == 10:
 | 
			
		||||
    print("Yes")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
if 0 == x:
 | 
			
		||||
if y == 10:
 | 
			
		||||
    print("Yes")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
if 0 == x:
 | 
			
		||||
    if y == 10:
 | 
			
		||||
        print("Yes")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,36 +5,47 @@ challengeType: 11
 | 
			
		||||
videoId: RYdW660KkaQ
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=KfhslNzopxo" target='_blank'>Exercise: Geodata</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=wSpl1-7afAk" target='_blank'>Exercise: Gmane Model</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=H3w4lOFBUOI" target='_blank'>Exercise: Gmane Spider</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=LRqVPMEXByw" target='_blank'>Exercise: Gmane Viz</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=yFRAZBkBDBs" target='_blank'>Exercise: Page Rank</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=sXedPQ_AnWA" target='_blank'>Exercise: Page Spider</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=Fm0hpkxsZoo" target='_blank'>Exercise: Page Viz</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise: Geodata](https://www.youtube.com/watch?v=KfhslNzopxo)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which is a common JavaScript visualization library?
 | 
			
		||||
\- [Exercise: Gmane Model](https://www.youtube.com/watch?v=wSpl1-7afAk)
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        DataViz.js
 | 
			
		||||
    - |
 | 
			
		||||
        D3
 | 
			
		||||
    - |
 | 
			
		||||
        Lowcharts
 | 
			
		||||
    - |
 | 
			
		||||
        DATA6
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
\- [Exercise: Gmane Spider](https://www.youtube.com/watch?v=H3w4lOFBUOI)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Gmane Viz](https://www.youtube.com/watch?v=LRqVPMEXByw)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Page Rank](https://www.youtube.com/watch?v=yFRAZBkBDBs)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Page Spider](https://www.youtube.com/watch?v=sXedPQ_AnWA)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Page Viz](https://www.youtube.com/watch?v=Fm0hpkxsZoo)
 | 
			
		||||
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Which is a common JavaScript visualization library?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
DataViz.js
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
D3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Lowcharts
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
DATA6
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: 6-w_qIUwaxU
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
How does the PageRank algorithm work?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    How does the PageRank algorithm work?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        It determines which pages are most highly connected.
 | 
			
		||||
    - |
 | 
			
		||||
        It ranks pages based on view counts.
 | 
			
		||||
    - |
 | 
			
		||||
        It figures out which pages contain the most important content.
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
It determines which pages are most highly connected.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It ranks pages based on view counts.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It figures out which pages contain the most important content.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,41 +5,48 @@ challengeType: 11
 | 
			
		||||
videoId: EEmekKiKG70
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=PrhZ9qwBDD8" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=PrhZ9qwBDD8)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100}
 | 
			
		||||
    for key in counts:
 | 
			
		||||
        if counts[key] > 10:
 | 
			
		||||
            print(key, counts[key])
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        annie 42
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
        jan 100
 | 
			
		||||
    - |
 | 
			
		||||
        chuck 1
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
        annie 42
 | 
			
		||||
What will the following code print?:
 | 
			
		||||
 | 
			
		||||
        jan 100
 | 
			
		||||
    - |
 | 
			
		||||
        chuck 1
 | 
			
		||||
    - |
 | 
			
		||||
        [Error]
 | 
			
		||||
  solution: 1
 | 
			
		||||
```python
 | 
			
		||||
counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100}
 | 
			
		||||
for key in counts:
 | 
			
		||||
    if counts[key] > 10:
 | 
			
		||||
        print(key, counts[key])
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
annie 42
 | 
			
		||||
 | 
			
		||||
jan 100
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
chuck 1
 | 
			
		||||
 | 
			
		||||
annie 42
 | 
			
		||||
 | 
			
		||||
jan 100
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
chuck 1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\[Error]
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,38 +1,42 @@
 | 
			
		||||
---
 | 
			
		||||
id: 5e7b9f090b6c005b0e76f068
 | 
			
		||||
title: "Dictionaries: Common Applications"
 | 
			
		||||
title: 'Dictionaries: Common Applications'
 | 
			
		||||
challengeType: 11
 | 
			
		||||
videoId: f17xPfIXct0
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following code print?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print?
 | 
			
		||||
    ```python
 | 
			
		||||
    counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}
 | 
			
		||||
    print(counts.get('kris', 0))
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        quincy
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
    - |
 | 
			
		||||
        10
 | 
			
		||||
    - |
 | 
			
		||||
        [will return error]
 | 
			
		||||
  solution: 3
 | 
			
		||||
```python
 | 
			
		||||
counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}
 | 
			
		||||
print(counts.get('kris', 0))
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
quincy
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
10
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[will return error]
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,30 +5,35 @@ challengeType: 11
 | 
			
		||||
videoId: cIA0EokbaHE
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=il1j4wkte2E" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=il1j4wkte2E)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does the word 'continue' do in the middle of a loop?
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Skips to the code directly after the loop.
 | 
			
		||||
    - |
 | 
			
		||||
        Skips to the next line in the code.
 | 
			
		||||
    - |
 | 
			
		||||
        Skips to the next iteration of the loop.
 | 
			
		||||
    - |
 | 
			
		||||
        Skips the next block of code.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
What does the word 'continue' do in the middle of a loop?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Skips to the code directly after the loop.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Skips to the next line in the code.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Skips to the next iteration of the loop.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Skips the next block of code.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,37 +5,47 @@ challengeType: 11
 | 
			
		||||
videoId: dKgUaIa5ATg
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://youtu.be/t_4DPwsaGDY" target='_blank'>Exercise 1</a>
 | 
			
		||||
- <a href="https://youtu.be/wgkC8SxraAQ" target='_blank'>Exercise 2</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise 1](https://youtu.be/t_4DPwsaGDY)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will print out after running this code:
 | 
			
		||||
    ```python
 | 
			
		||||
    width = 15
 | 
			
		||||
    height = 12.0
 | 
			
		||||
    print(height/3)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        39
 | 
			
		||||
    - |
 | 
			
		||||
        4
 | 
			
		||||
    - |
 | 
			
		||||
        4.0
 | 
			
		||||
    - |
 | 
			
		||||
        5.0
 | 
			
		||||
    - |
 | 
			
		||||
        5
 | 
			
		||||
  solution: 3
 | 
			
		||||
\- [Exercise 2](https://youtu.be/wgkC8SxraAQ)
 | 
			
		||||
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
What will print out after running this code:
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
width = 15
 | 
			
		||||
height = 12.0
 | 
			
		||||
print(height/3)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
39
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
4.0
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
5.0
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
5
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,35 +5,44 @@ challengeType: 11
 | 
			
		||||
videoId: KgT_fYLXnyk
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=1bSqHot-KwE" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=1bSqHot-KwE)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is the value of i in the following code?
 | 
			
		||||
    ```python
 | 
			
		||||
    word = "bananana"
 | 
			
		||||
    i = word.find("na")
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        nanana
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        3
 | 
			
		||||
    - |
 | 
			
		||||
        True
 | 
			
		||||
    - |
 | 
			
		||||
        na
 | 
			
		||||
  solution: 2
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
What is the value of i in the following code?
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
word = "bananana"
 | 
			
		||||
i = word.find("na")
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
nanana
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
True
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
na
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,31 @@ challengeType: 11
 | 
			
		||||
videoId: aRY_xjL35v0
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following program print out:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following program print out:
 | 
			
		||||
    ```python
 | 
			
		||||
    x = 43
 | 
			
		||||
    x = x + 1
 | 
			
		||||
    print(x)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        x
 | 
			
		||||
    - |
 | 
			
		||||
        x + 1
 | 
			
		||||
    - |
 | 
			
		||||
        44
 | 
			
		||||
  solution: 3
 | 
			
		||||
```python
 | 
			
		||||
x = 43
 | 
			
		||||
x = x + 1
 | 
			
		||||
print(x)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
x
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
x + 1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
44
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,32 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: H6qtjRTfSog
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
</section>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## Instructions
 | 
			
		||||
<section id='instructions'>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
Where are your programs stored when they are running?
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Where are your programs stored when they are running?
 | 
			
		||||
Hard Drive.
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Hard Drive.
 | 
			
		||||
    - |
 | 
			
		||||
        Memory.
 | 
			
		||||
    - |
 | 
			
		||||
        Central Processing Unit.
 | 
			
		||||
  solution: 2
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
Memory.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Central Processing Unit.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,36 +5,34 @@ challengeType: 11
 | 
			
		||||
videoId: 0QeGbZNS_bY
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
</section>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## Instructions
 | 
			
		||||
<section id='instructions'>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
What will print out after running these two lines of code:
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will print out after running these two lines of code:
 | 
			
		||||
    ```python
 | 
			
		||||
    x = 6
 | 
			
		||||
    print(x)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        x
 | 
			
		||||
    - |
 | 
			
		||||
        6
 | 
			
		||||
    - |
 | 
			
		||||
        x = 6
 | 
			
		||||
    - |
 | 
			
		||||
        (x)
 | 
			
		||||
  solution: 2
 | 
			
		||||
```python
 | 
			
		||||
x = 6
 | 
			
		||||
print(x)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
x
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
6
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
x = 6
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
(x)
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: 3muQV-Im3Z0
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://youtu.be/F7mtLrYzZP8" target='_blank'>Install Python on Windows</a>
 | 
			
		||||
- <a href="https://youtu.be/wfLnZP-4sZw" target='_blank'>Install Python on MacOS</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Install Python on Windows](https://youtu.be/F7mtLrYzZP8)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Who should learn to program?
 | 
			
		||||
\- [Install Python on MacOS](https://youtu.be/wfLnZP-4sZw)
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        College students.
 | 
			
		||||
    - |
 | 
			
		||||
        People who want to become software developers.
 | 
			
		||||
    - |
 | 
			
		||||
        Everyone.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Who should learn to program?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
College students.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
People who want to become software developers.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Everyone.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,32 +5,34 @@ challengeType: 11
 | 
			
		||||
videoId: hiRTRAqNlpE
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
How many lines will the following code print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    How many lines will the following code print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    for i in [2,1,5]:
 | 
			
		||||
        print(i)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        1
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        3
 | 
			
		||||
    - |
 | 
			
		||||
        5
 | 
			
		||||
  solution: 3
 | 
			
		||||
```python
 | 
			
		||||
for i in [2,1,5]:
 | 
			
		||||
    print(i)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
5
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,40 +5,40 @@ challengeType: 11
 | 
			
		||||
videoId: AelGAcoMXbI
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
<section id='description'>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
Below is code to find the smallest value from a list of values. One line has an error that will cause the code to not work as expected. Which line is it?:
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
```python
 | 
			
		||||
smallest = None
 | 
			
		||||
print("Before:", smallest)
 | 
			
		||||
for itervar in [3, 41, 12, 9, 74, 15]:
 | 
			
		||||
    if smallest is None or itervar < smallest:
 | 
			
		||||
        smallest = itervar
 | 
			
		||||
        break
 | 
			
		||||
    print("Loop:", itervar, smallest)
 | 
			
		||||
print("Smallest:", smallest)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
````yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Below is code to find the smallest value from a list of values. One line has an error that will cause the code to not work as expected. Which line is it?:
 | 
			
		||||
    ```python
 | 
			
		||||
    smallest = None
 | 
			
		||||
    print("Before:", smallest)
 | 
			
		||||
    for itervar in [3, 41, 12, 9, 74, 15]:
 | 
			
		||||
        if smallest is None or itervar < smallest:
 | 
			
		||||
            smallest = itervar
 | 
			
		||||
            break
 | 
			
		||||
        print("Loop:", itervar, smallest)
 | 
			
		||||
    print("Smallest:", smallest)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
      3
 | 
			
		||||
    - |
 | 
			
		||||
      4
 | 
			
		||||
    - |
 | 
			
		||||
      6
 | 
			
		||||
    - |
 | 
			
		||||
      7
 | 
			
		||||
  solution: 3
 | 
			
		||||
````
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
6
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
7
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,38 +5,43 @@ challengeType: 11
 | 
			
		||||
videoId: 9Wtqo6vha1M
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=kjxXZQw0uPg" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=kjxXZQw0uPg)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which of these evaluates to False?
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        0 == 0.0
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        0 is 0.0
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        0 is not 0.0
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        0 = 0.0
 | 
			
		||||
        ```
 | 
			
		||||
  solution: 2
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Which of these evaluates to False?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
0 == 0.0
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
0 is 0.0
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
0 is not 0.0
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
0 = 0.0
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,52 +5,54 @@ challengeType: 11
 | 
			
		||||
videoId: dLA-szNRnUY
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following code print out?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print out?:
 | 
			
		||||
    ```python
 | 
			
		||||
    n = 0
 | 
			
		||||
    while True:
 | 
			
		||||
        if n == 3:
 | 
			
		||||
            break
 | 
			
		||||
        print(n)
 | 
			
		||||
        n = n + 1
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
 | 
			
		||||
        1
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
 | 
			
		||||
        1
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
 | 
			
		||||
        3
 | 
			
		||||
    - |
 | 
			
		||||
        1
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        1
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
 | 
			
		||||
        3
 | 
			
		||||
  solution: 1
 | 
			
		||||
```python
 | 
			
		||||
n = 0
 | 
			
		||||
while True:
 | 
			
		||||
    if n == 3:
 | 
			
		||||
        break
 | 
			
		||||
    print(n)
 | 
			
		||||
    n = n + 1
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,41 +5,43 @@ challengeType: 11
 | 
			
		||||
videoId: MQ5z4bdF92U
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What SQL command would you use to retrieve all users that have the email address `quincy@freecodecamp.org`?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What SQL command would you use to retrieve all users that have the email address quincy@freecodecamp.org?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ```
 | 
			
		||||
        SELECT Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```
 | 
			
		||||
        SELECT Users WHERE email IS "quincy@freecodecamp.org"
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```
 | 
			
		||||
        SELECT ALL Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```
 | 
			
		||||
        SELECT * FROM Users WHERE email IS "quincy@freecodecamp.org"
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```
 | 
			
		||||
        SELECT * FROM Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
        ```
 | 
			
		||||
  solution: 5
 | 
			
		||||
```
 | 
			
		||||
SELECT Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
SELECT Users WHERE email IS "quincy@freecodecamp.org"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
SELECT ALL Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
SELECT * FROM Users WHERE email IS "quincy@freecodecamp.org"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
SELECT * FROM Users WHERE email="quincy@freecodecamp.org"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
5
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,43 +5,51 @@ challengeType: 11
 | 
			
		||||
videoId: HdL82tAZR20
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
<section id='description'>
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=crLerB4ZxMI" target='_blank'>Exercise 1</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=KJN3-7HH6yk" target='_blank'>Exercise 2</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
\- [Exercise 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
 | 
			
		||||
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
 | 
			
		||||
 | 
			
		||||
````yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Given the following code:
 | 
			
		||||
    ```python
 | 
			
		||||
    temp = "5 degrees"
 | 
			
		||||
    cel = 0
 | 
			
		||||
    fahr = float(temp)
 | 
			
		||||
    cel = (fahr - 32.0) * 5.0 / 9.0
 | 
			
		||||
    print(cel)
 | 
			
		||||
    ```
 | 
			
		||||
    Which line/lines should be surrounded by `try` block?
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
      1
 | 
			
		||||
    - |
 | 
			
		||||
      3
 | 
			
		||||
    - |
 | 
			
		||||
      3,4
 | 
			
		||||
    - |
 | 
			
		||||
      4
 | 
			
		||||
    - |
 | 
			
		||||
      None
 | 
			
		||||
  solution: 3
 | 
			
		||||
````
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Given the following code:
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
temp = "5 degrees"
 | 
			
		||||
cel = 0
 | 
			
		||||
fahr = float(temp)
 | 
			
		||||
cel = (fahr - 32.0) * 5.0 / 9.0
 | 
			
		||||
print(cel)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Which line/lines should be surrounded by `try` block?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
3,4
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
None
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: c6vZGescaSc
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What type of HTTP request is usually used to access a website?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What type of HTTP request is usually used to access a website?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        POST
 | 
			
		||||
    - |
 | 
			
		||||
        GET
 | 
			
		||||
    - |
 | 
			
		||||
        WEB
 | 
			
		||||
    - |
 | 
			
		||||
        ACCESS
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
POST
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
GET
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
WEB
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
ACCESS
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: Pv_pJgVu8WI
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which type of encoding do most websites use?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which type of encoding do most websites use?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        UTF-8
 | 
			
		||||
    - |
 | 
			
		||||
        UTF-16
 | 
			
		||||
    - |
 | 
			
		||||
        UTF-32
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
UTF-8
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
UTF-16
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
UTF-32
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,32 +5,32 @@ challengeType: 11
 | 
			
		||||
videoId: 7lFM1T_CxBs
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the output of the following code be like?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the output of the following code be like?:
 | 
			
		||||
    ```python
 | 
			
		||||
    import urllib.request
 | 
			
		||||
    fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
 | 
			
		||||
    for line in fhand:
 | 
			
		||||
        print(line.decode().strip())
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Just contents of "romeo.txt".
 | 
			
		||||
    - |
 | 
			
		||||
        A header and the contents of "romeo.txt".
 | 
			
		||||
    - |
 | 
			
		||||
        A header, a footer, and the contents of "romeo.txt".
 | 
			
		||||
  solution: 1
 | 
			
		||||
```python
 | 
			
		||||
import urllib.request
 | 
			
		||||
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
 | 
			
		||||
for line in fhand:
 | 
			
		||||
    print(line.decode().strip())
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Just contents of "romeo.txt".
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A header and the contents of "romeo.txt".
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A header, a footer, and the contents of "romeo.txt".
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,38 +5,51 @@ challengeType: 11
 | 
			
		||||
videoId: Uyioq2q4cEg
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=dWLdI143W-g" target='_blank'>Exercise: socket1</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=8yis2DvbBkI" target='_blank'>Exercise: urllib</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=g9flPDG9nnY" target='_blank'>Exercise: urllinks</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise: socket1](https://www.youtube.com/watch?v=dWLdI143W-g)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What Python library is used for parsing HTML documents and extracting data from HTML documents?
 | 
			
		||||
\- [Exercise: urllib](https://www.youtube.com/watch?v=8yis2DvbBkI)
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        socket
 | 
			
		||||
    - |
 | 
			
		||||
        http
 | 
			
		||||
    - |
 | 
			
		||||
        BeautifulSoup
 | 
			
		||||
    - |
 | 
			
		||||
        PrettyBiscuit
 | 
			
		||||
    - |
 | 
			
		||||
        WonderfulSalad
 | 
			
		||||
    - |
 | 
			
		||||
        HttpParser
 | 
			
		||||
    - |
 | 
			
		||||
        GrunkleStan
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
\- [Exercise: urllinks](https://www.youtube.com/watch?v=g9flPDG9nnY)
 | 
			
		||||
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
What Python library is used for parsing HTML documents and extracting data from HTML documents?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
socket
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
http
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
BeautifulSoup
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
PrettyBiscuit
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
WonderfulSalad
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
HttpParser
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
GrunkleStan
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: _kJvneKVdNM
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What Python library gives access to TCP Sockets?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
      What Python library gives access to TCP Sockets?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        tcp
 | 
			
		||||
    - |
 | 
			
		||||
        socket
 | 
			
		||||
    - |
 | 
			
		||||
        http
 | 
			
		||||
    - |
 | 
			
		||||
        port
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
tcp
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
socket
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
http
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
port
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,45 +5,45 @@ challengeType: 11
 | 
			
		||||
videoId: zjyT9DaAjx4
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What does the following code create?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does the following code create?:
 | 
			
		||||
```py
 | 
			
		||||
import socket
 | 
			
		||||
 | 
			
		||||
    ```py
 | 
			
		||||
    import socket
 | 
			
		||||
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 | 
			
		||||
mysock.connect(('data.pr4e.org', 80))
 | 
			
		||||
cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'.encode()
 | 
			
		||||
mysock.send(cmd)
 | 
			
		||||
 | 
			
		||||
    mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 | 
			
		||||
    mysock.connect(('data.pr4e.org', 80))
 | 
			
		||||
    cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'.encode()
 | 
			
		||||
    mysock.send(cmd)
 | 
			
		||||
 | 
			
		||||
    while True:
 | 
			
		||||
        data = mysock.recv(512)
 | 
			
		||||
        if len(data) < 1:
 | 
			
		||||
            break
 | 
			
		||||
        print(data.decode(),end='')
 | 
			
		||||
    mysock.close()
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        A simple web server.
 | 
			
		||||
    - |
 | 
			
		||||
        A simple email client.
 | 
			
		||||
    - |
 | 
			
		||||
        A simple todo list.
 | 
			
		||||
    - |
 | 
			
		||||
        A simple web browser.
 | 
			
		||||
  solution: 4
 | 
			
		||||
while True:
 | 
			
		||||
    data = mysock.recv(512)
 | 
			
		||||
    if len(data) < 1:
 | 
			
		||||
        break
 | 
			
		||||
    print(data.decode(),end='')
 | 
			
		||||
mysock.close()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
A simple web server.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A simple email client.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A simple todo list.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A simple web browser.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,68 +5,68 @@ challengeType: 11
 | 
			
		||||
videoId: p1r3h_AMMIM
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following program print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following program print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    class PartyAnimal:
 | 
			
		||||
        x = 0
 | 
			
		||||
        name = ''
 | 
			
		||||
        def __init__(self, nam):
 | 
			
		||||
            self.name = nam
 | 
			
		||||
            print(self.name,'constructed')
 | 
			
		||||
        def party(self):
 | 
			
		||||
            self.x = self.x + 1
 | 
			
		||||
            print(self.name,'party count',self.x)
 | 
			
		||||
```python
 | 
			
		||||
class PartyAnimal:
 | 
			
		||||
    x = 0
 | 
			
		||||
    name = ''
 | 
			
		||||
    def __init__(self, nam):
 | 
			
		||||
        self.name = nam
 | 
			
		||||
        print(self.name,'constructed')
 | 
			
		||||
    def party(self):
 | 
			
		||||
        self.x = self.x + 1
 | 
			
		||||
        print(self.name,'party count',self.x)
 | 
			
		||||
 | 
			
		||||
    q = PartyAnimal('Quincy')
 | 
			
		||||
    m = PartyAnimal('Miya')
 | 
			
		||||
q = PartyAnimal('Quincy')
 | 
			
		||||
m = PartyAnimal('Miya')
 | 
			
		||||
 | 
			
		||||
    q.party()
 | 
			
		||||
    m.party()
 | 
			
		||||
    q.party()
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Quincy constructed
 | 
			
		||||
 | 
			
		||||
        Miya constructed
 | 
			
		||||
 | 
			
		||||
        Quincy party count 1
 | 
			
		||||
 | 
			
		||||
        Miya party count 2
 | 
			
		||||
 | 
			
		||||
        Quincy party count 3
 | 
			
		||||
    - |
 | 
			
		||||
        Quincy constructed
 | 
			
		||||
 | 
			
		||||
        Miya constructed
 | 
			
		||||
 | 
			
		||||
        Quincy party count 1
 | 
			
		||||
 | 
			
		||||
        Miya party count 1
 | 
			
		||||
 | 
			
		||||
        Quincy party count 2
 | 
			
		||||
    - |
 | 
			
		||||
        Quincy constructed
 | 
			
		||||
 | 
			
		||||
        Quincy party count 1
 | 
			
		||||
 | 
			
		||||
        Quincy party count 2
 | 
			
		||||
 | 
			
		||||
        Miya constructed
 | 
			
		||||
 | 
			
		||||
        Miya party count 1
 | 
			
		||||
  solution: 2
 | 
			
		||||
q.party()
 | 
			
		||||
m.party()
 | 
			
		||||
q.party()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Quincy constructed
 | 
			
		||||
 | 
			
		||||
Miya constructed
 | 
			
		||||
 | 
			
		||||
Quincy party count 1
 | 
			
		||||
 | 
			
		||||
Miya party count 2
 | 
			
		||||
 | 
			
		||||
Quincy party count 3
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Quincy constructed
 | 
			
		||||
 | 
			
		||||
Miya constructed
 | 
			
		||||
 | 
			
		||||
Quincy party count 1
 | 
			
		||||
 | 
			
		||||
Miya party count 1
 | 
			
		||||
 | 
			
		||||
Quincy party count 2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Quincy constructed
 | 
			
		||||
 | 
			
		||||
Quincy party count 1
 | 
			
		||||
 | 
			
		||||
Quincy party count 2
 | 
			
		||||
 | 
			
		||||
Miya constructed
 | 
			
		||||
 | 
			
		||||
Miya party count 1
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,47 +5,49 @@ challengeType: 11
 | 
			
		||||
videoId: FiABKEuaSJ8
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following program print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following program print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    class PartyAnimal:
 | 
			
		||||
        x = 0
 | 
			
		||||
        def party(self):
 | 
			
		||||
            self.x = self.x + 2
 | 
			
		||||
            print(self.x)
 | 
			
		||||
```python
 | 
			
		||||
class PartyAnimal:
 | 
			
		||||
    x = 0
 | 
			
		||||
    def party(self):
 | 
			
		||||
        self.x = self.x + 2
 | 
			
		||||
        print(self.x)
 | 
			
		||||
 | 
			
		||||
    an = PartyAnimal()
 | 
			
		||||
    an.party()
 | 
			
		||||
    an.party()
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        So far 1
 | 
			
		||||
 | 
			
		||||
        So far 2
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
 | 
			
		||||
        0
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
 | 
			
		||||
        4
 | 
			
		||||
  solution: 4
 | 
			
		||||
an = PartyAnimal()
 | 
			
		||||
an.party()
 | 
			
		||||
an.party()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
So far 1
 | 
			
		||||
 | 
			
		||||
So far 2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: FBL3alYrxRM
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is inheritance in object-oriented programming?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is inheritance in object-oriented programming?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        A new class created when a parent class is extended.
 | 
			
		||||
    - |
 | 
			
		||||
        A constructed instance of a class.
 | 
			
		||||
    - |
 | 
			
		||||
        The ability to create a new class by extending an existing class.
 | 
			
		||||
    - |
 | 
			
		||||
        A method that is called at the moment when a class is being used to construct an object.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
A new class created when a parent class is extended.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A constructed instance of a class.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
The ability to create a new class by extending an existing class.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A method that is called at the moment when a class is being used to construct an object.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,46 +5,50 @@ challengeType: 11
 | 
			
		||||
videoId: dnzvfimrRMg
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What does dict equal after running this code?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does dict equal after running this code?:
 | 
			
		||||
    ```python
 | 
			
		||||
    dict = {"Fri": 20, "Thu": 6, "Sat": 1}
 | 
			
		||||
    dict["Thu"] = 13
 | 
			
		||||
    dict["Sat"] = 2
 | 
			
		||||
    dict["Sun"] = 9
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        {'Fri': 20, 'Thu': 6, 'Sat': 1}
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        {'Fri': 20, 'Thu': 6, 'Sat': 1, 'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        {'Sun': 9}
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        {'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
        ```
 | 
			
		||||
    - |
 | 
			
		||||
        ```python
 | 
			
		||||
        {'Fri': 20, 'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
        ```
 | 
			
		||||
  solution: 5
 | 
			
		||||
```python
 | 
			
		||||
dict = {"Fri": 20, "Thu": 6, "Sat": 1}
 | 
			
		||||
dict["Thu"] = 13
 | 
			
		||||
dict["Sat"] = 2
 | 
			
		||||
dict["Sun"] = 9
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
{'Fri': 20, 'Thu': 6, 'Sat': 1}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
{'Fri': 20, 'Thu': 6, 'Sat': 1, 'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
{'Sun': 9}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
{'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
{'Fri': 20, 'Thu': 13, 'Sat': 2, 'Sun': 9}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
5
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: 3JGF-n3tDPU
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is the purpose of the "def" keyword in Python?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is the purpose of the "def" keyword in Python?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        It is slang that means "The following code is really cool."
 | 
			
		||||
    - |
 | 
			
		||||
        It indicates the start of a function.
 | 
			
		||||
    - |
 | 
			
		||||
        It indicates that the following indented section of code is to be stored for later.
 | 
			
		||||
    - |
 | 
			
		||||
        It indicates the start of a function, and the following indented section of code is to be stored for later.
 | 
			
		||||
    - |
 | 
			
		||||
        None of the above.
 | 
			
		||||
  solution: 4
 | 
			
		||||
```
 | 
			
		||||
It is slang that means "The following code is really cool."
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It indicates the start of a function.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It indicates that the following indented section of code is to be stored for later.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It indicates the start of a function, and the following indented section of code is to be stored for later.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
None of the above.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,32 +5,34 @@ challengeType: 11
 | 
			
		||||
videoId: Y0cvfDpYC_c
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is the value of x after running this code:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is the value of x after running this code:
 | 
			
		||||
    ```python
 | 
			
		||||
    fruit = "banana"
 | 
			
		||||
    x = fruit[1]
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        banana
 | 
			
		||||
    - |
 | 
			
		||||
        a
 | 
			
		||||
    - |
 | 
			
		||||
        b
 | 
			
		||||
    - |
 | 
			
		||||
        True
 | 
			
		||||
  solution: 2
 | 
			
		||||
```python
 | 
			
		||||
fruit = "banana"
 | 
			
		||||
x = fruit[1]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
banana
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
a
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
b
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
True
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: uJxGeTYy0us
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which is NOT true about objects in Python?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which is NOT true about objects in Python?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
  - |
 | 
			
		||||
      Objects get created and used.
 | 
			
		||||
  - |
 | 
			
		||||
      Objects are bits of code and data.
 | 
			
		||||
  - |
 | 
			
		||||
      Objects hide detail.
 | 
			
		||||
  - |
 | 
			
		||||
      Objects are one of the five standard data types.
 | 
			
		||||
  solution: 4
 | 
			
		||||
```
 | 
			
		||||
Objects get created and used.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Objects are bits of code and data.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Objects hide detail.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Objects are one of the five standard data types.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: Fo1tW09KIwo
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is used to indicate a new line in a string?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is used to indicate a new line in a string?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        \n
 | 
			
		||||
    - |
 | 
			
		||||
        {new_line}
 | 
			
		||||
    - |
 | 
			
		||||
        {n}
 | 
			
		||||
    - |
 | 
			
		||||
        /n
 | 
			
		||||
    - |
 | 
			
		||||
        /new
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
\\n
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
{new_line}
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
{n}
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
/n
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
/new
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,34 +5,36 @@ challengeType: 11
 | 
			
		||||
videoId: LaCZnTbQGkE
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following program print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following program print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    import re
 | 
			
		||||
    s = 'A message from csev@umich.edu to cwen@iupui.edu about meeting @2PM'
 | 
			
		||||
    lst = re.findall('\\S+@\\S+', s)
 | 
			
		||||
    print(lst)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ['csev@umich.edu', 'cwen@iupui.edu']
 | 
			
		||||
    - |
 | 
			
		||||
        ['csev@umich.edu']
 | 
			
		||||
    - |
 | 
			
		||||
        ['umich.edu', 'iupui.edu']
 | 
			
		||||
    - |
 | 
			
		||||
        ['csev@', 'cwen@']
 | 
			
		||||
  solution: 1
 | 
			
		||||
```python
 | 
			
		||||
import re
 | 
			
		||||
s = 'A message from csev@umich.edu to cwen@iupui.edu about meeting @2PM'
 | 
			
		||||
lst = re.findall('\\S+@\\S+', s)
 | 
			
		||||
print(lst)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
['csev@umich.edu', 'cwen@iupui.edu']
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
['csev@umich.edu']
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
['umich.edu', 'iupui.edu']
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
['csev@', 'cwen@']
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: xCjFU9G6x48
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will search for a "$" in a regular expression?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will search for a "$" in a regular expression?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        $
 | 
			
		||||
    - |
 | 
			
		||||
        \dollar\
 | 
			
		||||
    - |
 | 
			
		||||
        \$
 | 
			
		||||
    - |
 | 
			
		||||
        !$
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
$
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\\dollar\\
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\\$
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
!$
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: Yud_COr6pZo
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which regex matches only a white space character?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which regex matches only a white space character?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        \S
 | 
			
		||||
    - |
 | 
			
		||||
        \s
 | 
			
		||||
    - |
 | 
			
		||||
        .
 | 
			
		||||
    - |
 | 
			
		||||
        \_
 | 
			
		||||
    - |
 | 
			
		||||
        \\.
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
\\S
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\\s
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\_
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\\.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: AqdfbrpkbHk
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is the best practice for how many times a piece of string data should be stored in a database?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is the best practice for how many times a piece of string data should be stored in a database?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
    - |
 | 
			
		||||
        1
 | 
			
		||||
    - |
 | 
			
		||||
        2
 | 
			
		||||
    - |
 | 
			
		||||
        3
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,33 +1,33 @@
 | 
			
		||||
---
 | 
			
		||||
id: 5e7b9f170b6c005b0e76f08a
 | 
			
		||||
title: 'Relational Databases and SQLite'
 | 
			
		||||
title: Relational Databases and SQLite
 | 
			
		||||
challengeType: 11
 | 
			
		||||
videoId: QlNod5-kFpA
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which is NOT a primary data structure in a database?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which is NOT a primary data structure in a database?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        index
 | 
			
		||||
    - |
 | 
			
		||||
        table
 | 
			
		||||
    - |
 | 
			
		||||
        row
 | 
			
		||||
    - |
 | 
			
		||||
        column
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
index
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
table
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
row
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
column
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: jvDw3D9GKac
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
When using a JOIN clause in an SQL statement, what does ON do?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    When using a JOIN clause in an SQL statement, what does ON do?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        It indicates what tables to perform the JOIN on.
 | 
			
		||||
    - |
 | 
			
		||||
        It specifies the fields to use for the JOIN.
 | 
			
		||||
    - |
 | 
			
		||||
        It indicates how the two tables are to be joined.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
It indicates what tables to perform the JOIN on.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It specifies the fields to use for the JOIN.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It indicates how the two tables are to be joined.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,33 +5,43 @@ challengeType: 11
 | 
			
		||||
videoId: z-SBYcvEQOc
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=uQ3Qv1z_Vao" target='_blank'>Exercise: Email</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=qEkUEAz8j3o" target='_blank'>Exercise: Roster</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=I-E7avcPeSE" target='_blank'>Exercise: Tracks</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=RZRAoBFIH6A" target='_blank'>Exercise: Twfriends</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=xBaJddvJL4A" target='_blank'>Exercise: Twspider</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise: Email](https://www.youtube.com/watch?v=uQ3Qv1z_Vao)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which is an example of a many-to-many relationship?
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        teacher to student
 | 
			
		||||
    - |
 | 
			
		||||
        customer to order
 | 
			
		||||
    - |
 | 
			
		||||
        book to pages
 | 
			
		||||
    - |
 | 
			
		||||
        city to country
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
\- [Exercise: Roster](https://www.youtube.com/watch?v=qEkUEAz8j3o)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Tracks](https://www.youtube.com/watch?v=I-E7avcPeSE)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Twfriends](https://www.youtube.com/watch?v=RZRAoBFIH6A)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: Twspider](https://www.youtube.com/watch?v=xBaJddvJL4A)
 | 
			
		||||
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
Which is an example of a many-to-many relationship?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
teacher to student
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
customer to order
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
book to pages
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
city to country
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: CSbqczsHVnc
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What does the INSERT command do in SQL?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does the INSERT command do in SQL?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        It defines a new row by listing the fields we want to include followed by the values we want placed in the new row.
 | 
			
		||||
    - |
 | 
			
		||||
        It defines a new column by listing the rows we want to include followed by the values we want placed in the new column.
 | 
			
		||||
    - |
 | 
			
		||||
        It defines a new table by listing the rows and fields we want to include followed by the values that we want placed in the table.
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
It defines a new row by listing the fields we want to include followed by the values we want placed in the new row.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It defines a new column by listing the rows we want to include followed by the values we want placed in the new column.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
It defines a new table by listing the rows and fields we want to include followed by the values that we want placed in the table.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,32 +2,32 @@
 | 
			
		||||
id: 5e7b9f180b6c005b0e76f08d
 | 
			
		||||
title: Representing Relationships in a Relational Database
 | 
			
		||||
challengeType: 11
 | 
			
		||||
videoId: -orenCNdC2Q
 | 
			
		||||
videoId: '-orenCNdC2Q'
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is a foreign key?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is a foreign key?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        A key that is not supposed to be there.
 | 
			
		||||
    - |
 | 
			
		||||
        A key that uses non-latin characters.
 | 
			
		||||
    - |
 | 
			
		||||
        A number that points to the primary key of an associated row in a different table.
 | 
			
		||||
    - |
 | 
			
		||||
        A key that the "real world" might use to look up a row.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
A key that is not supposed to be there.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A key that uses non-latin characters.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A number that points to the primary key of an associated row in a different table.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
A key that the "real world" might use to look up a row.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,35 +5,42 @@ challengeType: 11
 | 
			
		||||
videoId: lxcFa7ldCi0
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=-9TfJF2dwHI" target='_blank'>Exercise</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise](https://www.youtube.com/watch?v=-9TfJF2dwHI)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does n equal in this code?
 | 
			
		||||
    ```python
 | 
			
		||||
    words = 'His e-mail is q-lar@freecodecamp.org'
 | 
			
		||||
    pieces = words.split()
 | 
			
		||||
    parts = pieces[3].split('-')
 | 
			
		||||
    n = parts[1]
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        mail
 | 
			
		||||
    - |
 | 
			
		||||
        q
 | 
			
		||||
    - |
 | 
			
		||||
        lar
 | 
			
		||||
    - |
 | 
			
		||||
        lar@freecodecamp.org
 | 
			
		||||
  solution: 4
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
What does n equal in this code?
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
words = 'His e-mail is q-lar@freecodecamp.org'
 | 
			
		||||
pieces = words.split()
 | 
			
		||||
parts = pieces[3].split('-')
 | 
			
		||||
n = parts[1]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
mail
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
q
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
lar
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
`lar@freecodecamp.org`
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,56 +5,58 @@ challengeType: 11
 | 
			
		||||
videoId: LYZj207fKpQ
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following code print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    for n in "banana":
 | 
			
		||||
        print(n)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        n
 | 
			
		||||
 | 
			
		||||
        n
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
 | 
			
		||||
        1
 | 
			
		||||
    - |
 | 
			
		||||
        0
 | 
			
		||||
 | 
			
		||||
        1
 | 
			
		||||
 | 
			
		||||
        2
 | 
			
		||||
 | 
			
		||||
        3
 | 
			
		||||
 | 
			
		||||
        4
 | 
			
		||||
 | 
			
		||||
        5
 | 
			
		||||
    - |
 | 
			
		||||
        b
 | 
			
		||||
 | 
			
		||||
        a
 | 
			
		||||
 | 
			
		||||
        n
 | 
			
		||||
 | 
			
		||||
        a
 | 
			
		||||
 | 
			
		||||
        n
 | 
			
		||||
 | 
			
		||||
        a
 | 
			
		||||
  solution: 4
 | 
			
		||||
```python
 | 
			
		||||
for n in "banana":
 | 
			
		||||
    print(n)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
n
 | 
			
		||||
 | 
			
		||||
n
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
0
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
5
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
b
 | 
			
		||||
 | 
			
		||||
a
 | 
			
		||||
 | 
			
		||||
n
 | 
			
		||||
 | 
			
		||||
a
 | 
			
		||||
 | 
			
		||||
n
 | 
			
		||||
 | 
			
		||||
a
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,52 +5,54 @@ challengeType: 11
 | 
			
		||||
videoId: 3Lxpladfh2k
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following code print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    d = dict()
 | 
			
		||||
    d['quincy'] = 1
 | 
			
		||||
    d['beau'] = 5
 | 
			
		||||
    d['kris'] = 9
 | 
			
		||||
    for (k,i) in d.items():
 | 
			
		||||
        print(k, i)
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        k i
 | 
			
		||||
 | 
			
		||||
        k i
 | 
			
		||||
 | 
			
		||||
        k i
 | 
			
		||||
    - |
 | 
			
		||||
        quincy 0
 | 
			
		||||
 | 
			
		||||
        beau 1
 | 
			
		||||
 | 
			
		||||
        kris 2
 | 
			
		||||
    - |
 | 
			
		||||
        quincy 1
 | 
			
		||||
 | 
			
		||||
        beau 5
 | 
			
		||||
 | 
			
		||||
        kris 9
 | 
			
		||||
    - |
 | 
			
		||||
        1 quincy
 | 
			
		||||
 | 
			
		||||
        5 beau
 | 
			
		||||
 | 
			
		||||
        9 kris
 | 
			
		||||
  solution: 3
 | 
			
		||||
```python
 | 
			
		||||
d = dict()
 | 
			
		||||
d['quincy'] = 1
 | 
			
		||||
d['beau'] = 5
 | 
			
		||||
d['kris'] = 9
 | 
			
		||||
for (k,i) in d.items():
 | 
			
		||||
    print(k, i)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
k i
 | 
			
		||||
 | 
			
		||||
k i
 | 
			
		||||
 | 
			
		||||
k i
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
quincy 0
 | 
			
		||||
 | 
			
		||||
beau 1
 | 
			
		||||
 | 
			
		||||
kris 2
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
quincy 1
 | 
			
		||||
 | 
			
		||||
beau 5
 | 
			
		||||
 | 
			
		||||
kris 9
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
1 quincy
 | 
			
		||||
 | 
			
		||||
5 beau
 | 
			
		||||
 | 
			
		||||
9 kris
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: oNl1OVDPGKE
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What are the two most common ways to send data over the internet?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What are the two most common ways to send data over the internet?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        JSON and TXT
 | 
			
		||||
    - |
 | 
			
		||||
        JSON and XML
 | 
			
		||||
    - |
 | 
			
		||||
        XML and TXT
 | 
			
		||||
    - |
 | 
			
		||||
        XML and PHP
 | 
			
		||||
    - |
 | 
			
		||||
        PHP and TXT
 | 
			
		||||
  solution: 2
 | 
			
		||||
```
 | 
			
		||||
JSON and TXT
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
JSON and XML
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
XML and TXT
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
XML and PHP
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
PHP and TXT
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,33 +1,33 @@
 | 
			
		||||
---
 | 
			
		||||
id: 5e7b9f050b6c005b0e76f056
 | 
			
		||||
title: Variables, Expressions, and Statements
 | 
			
		||||
title: 'Variables, Expressions, and Statements'
 | 
			
		||||
challengeType: 11
 | 
			
		||||
videoId: nELR-uyyrok
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is the symbol used in an assignment statement?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is the symbol used in an assignment statement?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        ~
 | 
			
		||||
    - |
 | 
			
		||||
        &
 | 
			
		||||
    - |
 | 
			
		||||
        =
 | 
			
		||||
    - |
 | 
			
		||||
        |
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
~
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
&
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
=
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
\|
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,31 +5,33 @@ challengeType: 11
 | 
			
		||||
videoId: e3lydkH0prw
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Most data needs to be \_\_\_\_\_\_ before using it.
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Most data needs to be ______ before using it.
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        converted to JSON format
 | 
			
		||||
    - |
 | 
			
		||||
        graphed
 | 
			
		||||
    - |
 | 
			
		||||
        cleaned
 | 
			
		||||
    - |
 | 
			
		||||
        memorized
 | 
			
		||||
    - |
 | 
			
		||||
        turned into song
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
converted to JSON format
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
graphed
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
cleaned
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
memorized
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
turned into song
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,33 +5,41 @@ challengeType: 11
 | 
			
		||||
videoId: pI-g0lI8ngs
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --description--
 | 
			
		||||
 | 
			
		||||
More resources:
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=TJGJN0T8tak" target='_blank'>Exercise: GeoJSON</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=vTmw5RtfGMY" target='_blank'>Exercise: JSON</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=2c7YwhvpCro" target='_blank'>Exercise: Twitter</a>
 | 
			
		||||
- <a href="https://www.youtube.com/watch?v=AopYOlDa-vY" target='_blank'>Exercise: XML</a>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
\- [Exercise: GeoJSON](https://www.youtube.com/watch?v=TJGJN0T8tak)
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    When making a request from the Twitter API, what information must always be sent with the request?
 | 
			
		||||
\- [Exercise: JSON](https://www.youtube.com/watch?v=vTmw5RtfGMY)
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Twitter username
 | 
			
		||||
    - |
 | 
			
		||||
        date range
 | 
			
		||||
    - |
 | 
			
		||||
        search term
 | 
			
		||||
    - |
 | 
			
		||||
        key
 | 
			
		||||
  solution: 4
 | 
			
		||||
```
 | 
			
		||||
\- [Exercise: Twitter](https://www.youtube.com/watch?v=2c7YwhvpCro)
 | 
			
		||||
 | 
			
		||||
\- [Exercise: XML](https://www.youtube.com/watch?v=AopYOlDa-vY)
 | 
			
		||||
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
When making a request from the Twitter API, what information must always be sent with the request?
 | 
			
		||||
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Twitter username
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
date range
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
search term
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
key
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
4
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: oUNn1psfBJg
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What does API stand for?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What does API stand for?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Application Portable Intelligence
 | 
			
		||||
    - |
 | 
			
		||||
        Associate Programming International
 | 
			
		||||
    - |
 | 
			
		||||
        Application Program Interface
 | 
			
		||||
    - |
 | 
			
		||||
        Action Portable Interface
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
Application Portable Intelligence
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Associate Programming International
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Application Program Interface
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Action Portable Interface
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,47 +5,51 @@ challengeType: 11
 | 
			
		||||
videoId: ZJE-U56BppM
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What will the following code print?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What will the following code print?:
 | 
			
		||||
    ```python
 | 
			
		||||
    import json
 | 
			
		||||
    data = '''
 | 
			
		||||
      [
 | 
			
		||||
        { 'id' : '001',
 | 
			
		||||
          'x' : '2',
 | 
			
		||||
         'name' : 'Quincy'
 | 
			
		||||
        } ,
 | 
			
		||||
        { 'id' : '009',
 | 
			
		||||
          'x' : '7',
 | 
			
		||||
          'name' : 'Mrugesh'
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    '''
 | 
			
		||||
    info = json.loads(data)
 | 
			
		||||
    print(info[1]['name'])
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Quincy
 | 
			
		||||
    - |
 | 
			
		||||
        Mrugesh
 | 
			
		||||
    - |
 | 
			
		||||
        001
 | 
			
		||||
    - |
 | 
			
		||||
        009
 | 
			
		||||
    - |
 | 
			
		||||
        [Error]
 | 
			
		||||
  solution: 2
 | 
			
		||||
```python
 | 
			
		||||
import json
 | 
			
		||||
data = '''
 | 
			
		||||
  [
 | 
			
		||||
    { 'id' : '001',
 | 
			
		||||
      'x' : '2',
 | 
			
		||||
     'name' : 'Quincy'
 | 
			
		||||
    } ,
 | 
			
		||||
    { 'id' : '009',
 | 
			
		||||
      'x' : '7',
 | 
			
		||||
      'name' : 'Mrugesh'
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
'''
 | 
			
		||||
info = json.loads(data)
 | 
			
		||||
print(info[1]['name'])
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Quincy
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Mrugesh
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
001
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
009
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
[Error]
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: muerlsCHExI
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
With a services oriented approach to developing web apps, where is the data located?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    With a services oriented approach to developing web apps, where is the data located?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Spread across many computer systems connected via the internet or internal network.
 | 
			
		||||
    - |
 | 
			
		||||
        Within different services on the main web server.
 | 
			
		||||
    - |
 | 
			
		||||
        On a separate database server.
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
Spread across many computer systems connected via the internet or internal network.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Within different services on the main web server.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
On a separate database server.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,27 +5,25 @@ challengeType: 11
 | 
			
		||||
videoId: yWU9kTxW-nc
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is XSD?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is XSD?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        The W3C Schema specification for XML.
 | 
			
		||||
    - |
 | 
			
		||||
        The standard JSON schema from MOZ.
 | 
			
		||||
    - |
 | 
			
		||||
        Extensible Situational Driver
 | 
			
		||||
  solution: 1
 | 
			
		||||
```
 | 
			
		||||
The W3C Schema specification for XML.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
The standard JSON schema from MOZ.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Extensible Situational Driver
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
1
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,36 +5,38 @@ challengeType: 11
 | 
			
		||||
videoId: _pZ0srbg7So
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
What is wrong with the following XML?:
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    What is wrong with the following XML?:
 | 
			
		||||
    ```xml
 | 
			
		||||
    <person>
 | 
			
		||||
      <name>Chuck</name>
 | 
			
		||||
      <phone type="intl">
 | 
			
		||||
        +1 734 303 4456
 | 
			
		||||
      <email hide="yes" />
 | 
			
		||||
    </person>
 | 
			
		||||
    ```
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        Email tag is missing closing tag.
 | 
			
		||||
    - |
 | 
			
		||||
        Spacing will cause XML to be invalid.
 | 
			
		||||
    - |
 | 
			
		||||
        Phone tag is missing closing tag.
 | 
			
		||||
    - |
 | 
			
		||||
        Plain text should be encoded using UTF-8.
 | 
			
		||||
  solution: 3
 | 
			
		||||
```xml
 | 
			
		||||
<person>
 | 
			
		||||
  <name>Chuck</name>
 | 
			
		||||
  <phone type="intl">
 | 
			
		||||
    +1 734 303 4456
 | 
			
		||||
  <email hide="yes" />
 | 
			
		||||
</person>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
Email tag is missing closing tag.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Spacing will cause XML to be invalid.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Phone tag is missing closing tag.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Plain text should be encoded using UTF-8.
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,29 +5,29 @@ challengeType: 11
 | 
			
		||||
videoId: lCnHfTHkhbE
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Description
 | 
			
		||||
<section id='description'>
 | 
			
		||||
# --question--
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
## --text--
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
<section id='tests'>
 | 
			
		||||
Which method is used to add an item at the end of a list?
 | 
			
		||||
 | 
			
		||||
```yml
 | 
			
		||||
question:
 | 
			
		||||
  text: |
 | 
			
		||||
    Which method is used to add an item at the end of a list?
 | 
			
		||||
## --answers--
 | 
			
		||||
 | 
			
		||||
  answers:
 | 
			
		||||
    - |
 | 
			
		||||
        insert
 | 
			
		||||
    - |
 | 
			
		||||
        push
 | 
			
		||||
    - |
 | 
			
		||||
        append
 | 
			
		||||
    - |
 | 
			
		||||
        new
 | 
			
		||||
  solution: 3
 | 
			
		||||
```
 | 
			
		||||
insert
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
push
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
append
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
new
 | 
			
		||||
 | 
			
		||||
## --video-solution--
 | 
			
		||||
 | 
			
		||||
3
 | 
			
		||||
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user