fix(curriculum): standardize fill-in-the-blank format and typos (#39011)
This PR changes the format of earlier fill-in-the-blank questions/answers to the one used in later questions. It also fixes a few typos.
This commit is contained in:
committed by
GitHub
parent
10b0c9ed94
commit
f967b279a7
@ -31,18 +31,34 @@ question:
|
||||
```py
|
||||
import csv
|
||||
|
||||
with open(___, 'r') as fp:
|
||||
reader = csv.reader(fp, delimiter=___)
|
||||
with open(__A__, 'r') as fp:
|
||||
reader = csv.reader(fp, delimiter=__B__)
|
||||
next(reader)
|
||||
for index, values in enumerate(reader):
|
||||
name, certs_num, months_num = values
|
||||
print(f"{name} earned {___} certificates in {months_num} months")
|
||||
print(f"{name} earned {__C__} certificates in {months_num} months")
|
||||
```
|
||||
|
||||
answers:
|
||||
- <code>'certificates.csv', '-', values</code>
|
||||
- <code>'certificates.csv', '$', certs_num</code>
|
||||
- <code>'certificates', '$', certs_num</code>
|
||||
- |
|
||||
A: `'certificates.csv'`
|
||||
|
||||
B: `'-'`
|
||||
|
||||
C: `values`
|
||||
- |
|
||||
A: `'certificates.csv'`
|
||||
|
||||
B: `'$'`
|
||||
|
||||
C: `certs_num`
|
||||
- |
|
||||
|
||||
A: `'certificates'`
|
||||
|
||||
B: `'$'`
|
||||
|
||||
C: `certs_num`
|
||||
solution: 2
|
||||
```
|
||||
|
||||
|
@ -21,17 +21,23 @@ question:
|
||||
```py
|
||||
def banner(ip, port):
|
||||
s = socket.socket()
|
||||
s.____((ip, ____))
|
||||
s.__A__((ip, __B__))
|
||||
print(s.recv(1024))
|
||||
```
|
||||
|
||||
answers:
|
||||
- |
|
||||
`connect`, `port`
|
||||
A: `connect`
|
||||
|
||||
B: `port`
|
||||
- |
|
||||
`getsockname`, `'1-1024'`
|
||||
A: `getsockname`
|
||||
|
||||
B: `'1-1024'`
|
||||
- |
|
||||
`connect`, `int(port)`
|
||||
A: `connect`
|
||||
|
||||
B: `int(port)`
|
||||
solution: 3
|
||||
```
|
||||
|
||||
|
@ -16,7 +16,7 @@ videoId: kfv0K8MtkIc
|
||||
```yml
|
||||
question:
|
||||
text: |
|
||||
Fill in the blanks below to complete the architechture for a convolutional neural network:
|
||||
Fill in the blanks below to complete the architecture for a convolutional neural network:
|
||||
|
||||
```py
|
||||
model = models.__A__()
|
||||
|
@ -16,7 +16,6 @@ videoId: j5xsxjq_Xk8
|
||||
```yml
|
||||
question:
|
||||
text: |
|
||||
|
||||
Fill in the blanks below to create the training examples for the RNN:
|
||||
|
||||
```py
|
||||
|
@ -16,7 +16,7 @@ videoId: ZyCaF5S-lKg
|
||||
```yml
|
||||
question:
|
||||
text: |
|
||||
Natural Language Processing is a branch of artifitial intelligence that...:
|
||||
Natural Language Processing is a branch of artificial intelligence that...:
|
||||
answers:
|
||||
- deals with how computers understand and process natural/human languages.
|
||||
- translates image data into natural/human languages.
|
||||
|
@ -18,7 +18,7 @@ question:
|
||||
text: What is an optimizer function?
|
||||
answers:
|
||||
- A function that increases the accuracy of a model's predictions.
|
||||
- A function that implements the gradient descent and backpropogation algorithms for you.
|
||||
- A function that implements the gradient descent and backpropagation algorithms for you.
|
||||
- A function that reduces the time a model needs to train.
|
||||
solution: 2
|
||||
```
|
||||
|
Reference in New Issue
Block a user