feat(learn): add python video challenges (#38424)

This commit is contained in:
Beau Carnes
2020-04-06 14:49:56 -04:00
committed by Mrugesh Mohapatra
parent 22afc2a0ca
commit e776529ed0
218 changed files with 3411 additions and 114 deletions

View File

@@ -1,11 +1,11 @@
{
"name": "Advanced Node and Express",
"dashedName": "advanced-node-and-express",
"order": 3,
"order": 2,
"time": "5 hours",
"template": "",
"required": [],
"superBlock": "information-security-and-quality-assurance",
"superBlock": "quality-assurance",
"superOrder": 6,
"challengeOrder": [
[

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "coding-interview-prep",
"superOrder": 10,
"superOrder": 11,
"challengeOrder": [
[
"a3f503de51cf954ede28891d",

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561add10cb82ac38a17523bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/apis-and-microservices-certificate.json"
"fileName": "12-certificates/apis-and-microservices-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"5e46fc95ac417301a38fb934",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/data-analysis-with-python-certificate.json"
"fileName": "12-certificates/data-analysis-with-python-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "coding-interview-prep",
"superOrder": 10,
"superOrder": 11,
"challengeOrder": [
[
"587d8253367417b2b2512c6a",

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 10,
"superOrder": 12,
"challengeOrder": [
[
"5a553ca864b52e1d8bceea14",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/data-visualization-certificate.json"
"fileName": "12-certificates/data-visualization-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561acd10cb82ac38a17513bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/front-end-libraries-certificate.json"
"fileName": "12-certificates/front-end-libraries-certificate.json"
}

View File

@@ -1,12 +1,12 @@
{
"name": "Information Security and Quality Assurance Projects",
"dashedName": "information-security-and-quality-assurance-projects",
"order": 4,
"order": 0,
"time": "150 hours",
"template": "",
"required": [],
"superBlock": "information-security-and-quality-assurance",
"superOrder": 6,
"superOrder": 13,
"challengeOrder": [
[
"587d8249367417b2b2512c41",
@@ -27,16 +27,8 @@
[
"587d824a367417b2b2512c45",
"Anonymous Message Board"
],
[
"5e46f979ac417301a38fb932",
"Port Scanner"
],
[
"5e46f983ac417301a38fb933",
"SHA-1 Password Cracker"
]
],
"helpRoom": "HelpBackend",
"fileName": "06-information-security-and-quality-assurance/quality-assurance-and-information-security-projects.json"
"fileName": "12-information-security-and-quality-assurance/quality-assurance-and-information-security-projects.json"
}

View File

@@ -0,0 +1,18 @@
{
"name": "Information Security Certificate",
"dashedName": "information-security-certificate",
"order": 9,
"time": "",
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 12,
"challengeOrder": [
[
"5e6021435ac9d0ecd8b94b00",
"Information Security Certificate"
]
],
"isPrivate": true,
"fileName": "12-certificates/information-security-certificate.json"
}

View File

@@ -0,0 +1,34 @@
{
"name": "Information Security Projects",
"dashedName": "information-security-projects",
"order": 2,
"time": "150 hours",
"template": "",
"required": [],
"superBlock": "information-security",
"superOrder": 9,
"challengeOrder": [
[
"587d824a367417b2b2512c44",
"Stock Price Checker"
],
[
"587d824a367417b2b2512c45",
"Anonymous Message Board"
],
[
"5e601c775ac9d0ecd8b94aff",
"Real Time Multiplayer Game"
],
[
"5e46f979ac417301a38fb932",
"Port Scanner"
],
[
"5e46f983ac417301a38fb933",
"SHA-1 Password Cracker"
]
],
"helpRoom": "HelpBackend",
"fileName": "09-information-security/information-security-projects.json"
}

View File

@@ -5,8 +5,8 @@
"time": "5 hours",
"template": "",
"required": [],
"superBlock": "information-security-and-quality-assurance",
"superOrder": 6,
"superBlock": "information-security",
"superOrder": 9,
"challengeOrder": [
[
"587d8247367417b2b2512c36",

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561add10cb82ac38a17213bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/information-security-and-quality-assurance-certificate.json"
"fileName": "12-certificates/information-security-and-quality-assurance-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561abd10cb81ac38a17513bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/javascript-algorithms-and-data-structures-certificate.json"
"fileName": "12-certificates/javascript-algorithms-and-data-structures-certificate.json"
}

View File

@@ -0,0 +1,262 @@
{
"name": "Python for Everybody",
"dashedName": "lectures-python-for-everybody",
"order": 1,
"time": "15 hours",
"superBlock": "scientific-computing-with-python",
"superOrder": 7,
"challengeOrder": [
[
"5e6a54a558d3af90110a60a0",
"Introduction A"
],
[
"5e6a54af58d3af90110a60a1",
"Introduction B"
],
[
"5e6a54ba58d3af90110a60a2",
"Introduction C"
],
[
"5e6a54c358d3af90110a60a3",
"Introduction D"
],
[
"5e7b9f050b6c005b0e76f056",
"Expressions A"
],
[
"5e7b9f050b6c005b0e76f057",
"Expressions B"
],
[
"5e7b9f050b6c005b0e76f058",
"Conditional A"
],
[
"5e7b9f060b6c005b0e76f059",
"Conditional B"
],
[
"5e7b9f060b6c005b0e76f05a",
"Functions A"
],
[
"5e7b9f060b6c005b0e76f05b",
"Functions B"
],
[
"5e7b9f060b6c005b0e76f05c",
"Iterations A"
],
[
"5e7b9f070b6c005b0e76f05d",
"Iterations B"
],
[
"5e7b9f070b6c005b0e76f05e",
"Iterations C"
],
[
"5e7b9f070b6c005b0e76f05f",
"Iterations D"
],
[
"5e7b9f070b6c005b0e76f060",
"Strings A"
],
[
"5e7b9f070b6c005b0e76f061",
"Strings B"
],
[
"5e7b9f080b6c005b0e76f062",
"Files A"
],
[
"5e7b9f080b6c005b0e76f063",
"Files B"
],
[
"5e7b9f080b6c005b0e76f064",
"Lists A"
],
[
"5e7b9f090b6c005b0e76f065",
"Lists B"
],
[
"5e7b9f090b6c005b0e76f066",
"Lists C"
],
[
"5e7b9f090b6c005b0e76f067",
"Dictionaries A"
],
[
"5e7b9f090b6c005b0e76f068",
"Dictionaries B"
],
[
"5e7b9f0a0b6c005b0e76f069",
"Dictionaries C"
],
[
"5e7b9f0a0b6c005b0e76f06c",
"Tuples A"
],
[
"5e7b9f0b0b6c005b0e76f06d",
"Tuples B"
],
[
"5e7b9f0b0b6c005b0e76f06e",
"RegEx A"
],
[
"5e7b9f0b0b6c005b0e76f06f",
"RegEx B"
],
[
"5e7b9f0b0b6c005b0e76f070",
"RegEx C"
],
[
"5e7b9f0c0b6c005b0e76f071",
"HTTP A"
],
[
"5e7b9f0c0b6c005b0e76f072",
"HTTP B"
],
[
"5e7b9f0c0b6c005b0e76f073",
"HTTP C"
],
[
"5e7b9f0c0b6c005b0e76f074",
"HTTP D"
],
[
"5e7b9f0d0b6c005b0e76f075",
"HTTP E"
],
[
"5e7b9f0d0b6c005b0e76f076",
"HTTP F"
],
[
"5e7b9f0e0b6c005b0e76f07a",
"Web Services A"
],
[
"5e7b9f0e0b6c005b0e76f07b",
"Web Services B"
],
[
"5e7b9f0e0b6c005b0e76f07c",
"Web Services C"
],
[
"5e7b9f140b6c005b0e76f07d",
"Web Services D"
],
[
"5e7b9f140b6c005b0e76f07e",
"Web Services E"
],
[
"5e7b9f150b6c005b0e76f07f",
"Web Services F"
],
[
"5e7b9f150b6c005b0e76f080",
"Web Services G"
],
[
"5e7b9f160b6c005b0e76f085",
"Objects A"
],
[
"5e7b9f160b6c005b0e76f086",
"Objects B"
],
[
"5e7b9f170b6c005b0e76f087",
"Objects C"
],
[
"5e7b9f170b6c005b0e76f088",
"Objects D"
],
[
"5e7b9f170b6c005b0e76f08a",
"Databases A"
],
[
"5e7b9f170b6c005b0e76f08b",
"Databases B"
],
[
"5e7b9f180b6c005b0e76f08c",
"Databases C"
],
[
"5e7b9f180b6c005b0e76f08d",
"Databases D"
],
[
"5e7b9f180b6c005b0e76f08e",
"Databases E"
],
[
"5e7b9f180b6c005b0e76f08f",
"Databases F"
],
[
"5e7b9f190b6c005b0e76f090",
"Databases G"
],
[
"5e7b9f690b6c005b0e76f095",
"Viz A"
],
[
"5e7b9f6a0b6c005b0e76f096",
"Viz B"
],
[
"5e7b9f6a0b6c005b0e76f097",
"Viz C"
],
[
"5e7b9f6a0b6c005b0e76f098",
"Viz Geodata"
],
[
"5e7b9f6a0b6c005b0e76f099",
"Viz Gmane Model"
],
[
"5e7b9f6b0b6c005b0e76f09a",
"Viz Gmane Spider"
],
[
"5e7b9f6b0b6c005b0e76f09b",
"Viz Gmane Viz"
],
[
"5e7b9f6b0b6c005b0e76f09c",
"Viz Page Rank"
],
[
"5e7b9f6b0b6c005b0e76f09d",
"Viz Page Spider"
],
[
"5e7b9f6c0b6c005b0e76f09e",
"Viz Page Viz"
]
]
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"660add10cb82ac38a17513be",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/legacy-back-end-certificate.json"
"fileName": "12-certificates/legacy-back-end-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561add10cb82ac39a17513bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/legacy-data-visualization-certificate.json"
"fileName": "12-certificates/legacy-data-visualization-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561add10cb82ac38a17513be",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/legacy-front-end-certificate.json"
"fileName": "12-certificates/legacy-front-end-certificate.json"
}

View File

@@ -1,12 +1,12 @@
{
"name": "Machine Learning with Python Certificate",
"dashedName": "machine-learning-with-python-certificate",
"order": 9,
"order": 10,
"time": "",
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"5e46fc95ac417301a38fb935",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/machine-learning-with-python-certificate.json"
"fileName": "12-certificates/machine-learning-with-python-certificate.json"
}

View File

@@ -4,7 +4,7 @@
"order": 1,
"time": "150 hours",
"superBlock": "machine-learning-with-python",
"superOrder": 9,
"superOrder": 10,
"challengeOrder": [
[
"5e46f8d6ac417301a38fb92d",

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "coding-interview-prep",
"superOrder": 10,
"superOrder": 11,
"challengeOrder": [
[
"5900f36e1000cf542c50fe80",

View File

@@ -1,11 +1,11 @@
{
"name": "Quality Assurance and Testing with Chai",
"dashedName": "quality-assurance-and-testing-with-chai",
"order": 2,
"order": 1,
"time": "5 hours",
"template": "",
"required": [],
"superBlock": "information-security-and-quality-assurance",
"superBlock": "quality-assurance",
"superOrder": 6,
"challengeOrder": [
[
@@ -106,5 +106,5 @@
]
],
"helpRoom": "Help",
"fileName": "06-information-security-and-quality-assurance/testing-with-chai.json"
"fileName": "06-quality-assurance/quality-assurance-and-testing-with-chai.json"
}

View File

@@ -0,0 +1,18 @@
{
"name": "Quality Assurance Certificate",
"dashedName": "quality-assurance-certificate",
"order": 6,
"time": "",
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 12,
"challengeOrder": [
[
"5e611829481575a52dc59c0e",
"Quality Assurance Certificate"
]
],
"isPrivate": true,
"fileName": "12-certificates/quality-assurance-certificate.json"
}

View File

@@ -0,0 +1,34 @@
{
"name": "Quality Assurance Projects",
"dashedName": "quality-assurance-projects",
"order": 3,
"time": "150 hours",
"template": "",
"required": [],
"superBlock": "quality-assurance",
"superOrder": 6,
"challengeOrder": [
[
"587d8249367417b2b2512c41",
"Metric-Imperial Converter"
],
[
"587d8249367417b2b2512c42",
"Issue Tracker"
],
[
"587d824a367417b2b2512c43",
"Personal Library"
],
[
"5e601bf95ac9d0ecd8b94afd",
"Sudoku Solver"
],
[
"5e601c0d5ac9d0ecd8b94afe",
"American British Translator"
]
],
"helpRoom": "HelpBackend",
"fileName": "06-quality-assurance/quality-assurance-projects.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"561add10cb82ac38a17513bc",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/responsive-web-design-certificate.json"
"fileName": "12-certificates/responsive-web-design-certificate.json"
}

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "coding-interview-prep",
"superOrder": 10,
"superOrder": 11,
"challengeOrder": [
[
"594810f028c0303b75339acb",

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "certificates",
"superOrder": 11,
"superOrder": 12,
"challengeOrder": [
[
"5e44431b903586ffb414c951",
@@ -14,5 +14,5 @@
]
],
"isPrivate": true,
"fileName": "11-certificates/scientific-computing-with-python-certificate.json"
"fileName": "12-certificates/scientific-computing-with-python-certificate.json"
}

View File

@@ -1,7 +1,7 @@
{
"name": "Scientific Computing with Python Projects",
"dashedName": "scientific-computing-with-python-projects",
"order": 1,
"order": 2,
"time": "150 hours",
"superBlock": "scientific-computing-with-python",
"superOrder": 7,

View File

@@ -6,7 +6,7 @@
"template": "",
"required": [],
"superBlock": "coding-interview-prep",
"superOrder": 10,
"superOrder": 11,
"challengeOrder": [
[
"bd7158d8c442eddfaeb5bd10",

View File

@@ -0,0 +1,47 @@
---
id: 5e601c0d5ac9d0ecd8b94afe
title: American British Translator
challengeType: 4
isRequired: true
forumTopicId: 301571
---
## Description
<section id='description'>
COMING SOON
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: test
testString: 'test'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
</section>
## Solution
<section id='solution'>
```js
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/
```
</section>

View File

@@ -0,0 +1,47 @@
---
id: 5e601bf95ac9d0ecd8b94afd
title: Sudoku Solver
challengeType: 4
isRequired: true
forumTopicId: 301571
---
## Description
<section id='description'>
COMING SOON
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: test
testString: 'test'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
</section>
## Solution
<section id='solution'>
```js
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f050b6c005b0e76f058
title: Conditional A
challengeType: 11
isRequired: true
videoId: gz_IfIsZQtc
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'Which code is indented correctly to print "Yes" if 0 = x and y = 10?'
answers:
- '<pre>if 0 = x:<br>if y = 10:<br>print("Yes.")</pre>'
- '<pre>if 0 = x:<br> if y = 10:<br> print("Yes.")</pre>'
- '<pre>if 0 = x:<br>if y = 10:<br> print("Yes.")</pre>'
- '<pre>if 0 = x:<br> if y = 10:<br> print("Yes.")</pre>'
solution: 3
```
</section>

View File

@@ -0,0 +1,41 @@
---
id: 5e7b9f060b6c005b0e76f059
title: Conditional B
challengeType: 11
isRequired: true
videoId: HdL82tAZR20
---
## 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
<section id='tests'>
```yml
question:
text: 'Given the following code:<pre>
1 |temp = "5 degrees"<br>
2 |cel = 0<br>
3 |try:<br>
4 | fahr = float(temp)<br>
5 | cel = (fahr - 32.0) * 5.0 / 9.0<br>
6 |except:<br>
7 | print("temp should be a number")<br>
8 |print(cel)<br>
</pre>
Which line would cause the script to immediately stop because of an error?'
answers:
- '1'
- '4'
- '6'
- '7'
- 'None'
solution: 2
```
</section>

View File

@@ -0,0 +1,27 @@
---
id: 5e6a54a558d3af90110a60a0
title: Introduction A
challengeType: 11
isRequired: true
videoId: 3muQV-Im3Z0
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'Who should learn to program?'
answers:
- 'College students.'
- 'People who want to become software developers.'
- 'Everyone.'
solution: 3
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f170b6c005b0e76f08a
title: Databases A
challengeType: 11
isRequired: true
videoId: QlNod5-kFpA
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'Which is NOT a primary data structures in a database?'
answers:
- 'index'
- 'table'
- 'row'
- 'column'
solution: 1
```
</section>

View File

@@ -0,0 +1,29 @@
---
id: 5e7b9f170b6c005b0e76f08b
title: Databases B
challengeType: 11
isRequired: true
videoId: MQ5z4bdF92U
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What SQL command would you use to retrieve alL users that have the email address quincy@freecodecamp.org?'
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
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f180b6c005b0e76f08c
title: Databases C
challengeType: 11
isRequired: true
videoId: AqdfbrpkbHk
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What is the best practice for how many times a peice of string data should be stored in a database?'
answers:
- '0'
- '1'
- '2'
- '3'
solution: 2
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f180b6c005b0e76f08d
title: Databases D
challengeType: 11
isRequired: true
videoId: -orenCNdC2Q
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What is a foreign key?'
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
```
</section>

View File

@@ -0,0 +1,27 @@
---
id: 5e7b9f180b6c005b0e76f08e
title: Databases E
challengeType: 11
isRequired: true
videoId: A-t18zKJvmo
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What does the INSERT command do in SQL?'
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
```
</section>

View File

@@ -0,0 +1,27 @@
---
id: 5e7b9f180b6c005b0e76f08f
title: Databases F
challengeType: 11
isRequired: true
videoId: jvDw3D9GKac
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'When using a JOIN clause in an SQL statement, what does ON do?'
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
```
</section>

View File

@@ -0,0 +1,33 @@
---
id: 5e7b9f190b6c005b0e76f090
title: Databases G
challengeType: 11
isRequired: true
videoId: z-SBYcvEQOc
---
## Description
<section id='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'>
```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
```
</section>

View File

@@ -0,0 +1,33 @@
---
id: 5e7b9f090b6c005b0e76f067
title: Dictionaries A
challengeType: 11
isRequired: true
videoId: dnzvfimrRMg
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What does dict equal after running this code?
<pre>dict = {"Fri": 20, "Thu": 6, "Sat": 1}<br>
dict["Thu"] = 13<br>
dict["Sat"] = 2<br>
dict["Sun"] = 9</pre>'
answers:
- "{'Fri': 20, 'Thu': 6, 'Sat': 1}"
- "{'Fri': 20, 'Thu': 6, 'Sat': 1, 'Thu': 13, 'Sat': 2, 'Sun': 9}"
- "{'Sun': 9}"
- "{'Thu': 13, 'Sat': 2, 'Sun': 9}"
- "{'Fri': 20, 'Thu': 13, 'Sat': 2, 'Sun': 9}"
solution: 5
```
</section>

View File

@@ -0,0 +1,31 @@
---
id: 5e7b9f090b6c005b0e76f068
title: Dictionaries B
challengeType: 11
isRequired: true
videoId: f17xPfIXct0
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: "What will the following code print?
<pre>counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}<br>
print(counts.get('kris', 0))</pre>"
answers:
- '1'
- 'quincy'
- '0'
- '10'
- '[will return error]'
solution: 3
```
</section>

View File

@@ -0,0 +1,31 @@
---
id: 5e7b9f0a0b6c005b0e76f069
title: Dictionaries C
challengeType: 11
isRequired: true
videoId: EEmekKiKG70
---
## Description
<section id='description'>
More resources:
- <a href="https://www.youtube.com/watch?v=PrhZ9qwBDD8" target='_blank'>Exercise</a>
</section>
## Tests
<section id='tests'>
```yml
question:
text: "What will the following code print?
<pre>counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100}<br>
for key in counts:<br> if counts[key] > 10 :<br> print(key, counts[key])</pre>"
answers:
- 'annie 42<br>jan 100<br>'
- 'chuck 1<br>annie 42<br>jan 100'
- 'chuck 1'
- '[Error]'
solution: 1
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f050b6c005b0e76f056
title: Expressions A
challengeType: 11
isRequired: true
videoId: nELR-uyyrok
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What is the symbol is used in an assignment statement?'
answers:
- '~'
- '&'
- '='
- '|'
solution: 3
```
</section>

View File

@@ -0,0 +1,31 @@
---
id: 5e7b9f050b6c005b0e76f057
title: Expressions B
challengeType: 11
isRequired: true
videoId: dKgUaIa5ATg
---
## Description
<section id='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'>
```yml
question:
text: 'What will print out after running this code:<pre>width = 15<br>height = 12.0<br>print(height/3)</pre>'
answers:
- '39'
- '4'
- '4.0'
- '5.0'
- '5'
solution: 3
```
</section>

View File

@@ -0,0 +1,29 @@
---
id: 5e7b9f080b6c005b0e76f062
title: Files A
challengeType: 11
isRequired: true
videoId: Fo1tW09KIwo
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What is used to indicate a new line in a string?'
answers:
- '\n'
- '{new_line}'
- '{n}'
- '/n'
- '/new'
solution: 1
```
</section>

View File

@@ -0,0 +1,29 @@
---
id: 5e7b9f080b6c005b0e76f063
title: Files B
challengeType: 11
isRequired: true
videoId: cIA0EokbaHE
---
## Description
<section id='description'>
More resources:
- <a href="https://www.youtube.com/watch?v=il1j4wkte2E" target='_blank'>Exercise</a>
</section>
## Tests
<section id='tests'>
```yml
question:
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'
solution: 3
```
</section>

View File

@@ -0,0 +1,29 @@
---
id: 5e7b9f060b6c005b0e76f05a
title: Functions A
challengeType: 11
isRequired: true
videoId: 3JGF-n3tDPU
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What is the purpose of the "def" keyword in Python?'
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'
- 'b and c are both true'
- 'None of the above'
solution: 4
```
</section>

View File

@@ -0,0 +1,36 @@
---
id: 5e7b9f060b6c005b0e76f05b
title: Functions B
challengeType: 11
isRequired: true
videoId: nLDychdBwUg
---
## Description
<section id='description'>
More resources:
- <a href="https://www.youtube.com/watch?v=ksvGhDsjtpw" target='_blank'>Exercise</a>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What will the following Python program print out?
<pre>def fred():<br> print("Zap")<br><br>def jane():<br> print("ABC")<br>
<br>
jane()<br>
fred()<br>
jane()<br>
</pre>'
answers:
- 'Zap ABC jane fred jane'
- 'Zap ABC Zap'
- 'ABC Zap jane'
- 'ABC Zap ABC'
- 'Zap Zap Zap'
solution: 4
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f0c0b6c005b0e76f071
title: HTTP A
challengeType: 11
isRequired: true
videoId: _kJvneKVdNM
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What Python library gives access to TCP Sockets?'
answers:
- 'tcp'
- 'socket'
- 'http'
- 'port'
solution: 2
```
</section>

View File

@@ -0,0 +1,28 @@
---
id: 5e7b9f0c0b6c005b0e76f072
title: HTTP B
challengeType: 11
isRequired: true
videoId: c6vZGescaSc
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
question:
text: 'What type of HTTP is request is usually used to access a website?'
answers:
- 'POST'
- 'GET'
- 'WEB'
- 'ACCESS'
solution: 2
```
</section>

Some files were not shown because too many files have changed in this diff Show More