976 B
976 B
id, title, challengeType, isHidden, videoId
id | title | challengeType | isHidden | videoId |
---|---|---|---|---|
5e9a093a74c4063ca6f7c161 | Reading Data Introduction | 11 | true | cDnt02BcHng |
Description
Tests
question:
text: |
Given a file named `certificates.csv` with these contents:
```
Name$Certificates$Time (in months)
Tom$8$16
Kris$2$5
Ahmad$5$9
Beau$6$12
```
Fill in the blanks for the missing arguments below:
```py
import csv
with open(___, 'r') as fp:
reader = csv.reader(fp, delimiter=___)
next(reader)
for index, values in enumerate(reader):
name, certs_num, months_num = values
print(f"{name} earned {___} certificates in {months_num} months")
```
answers:
- <code>'certificates.csv', '-', values</code>
- <code>'certificates.csv', '$', certs_num</code>
- <code>'certificates', '$', certs_num</code>
solution: 2