We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06c1f68 + 32b295c commit d47e806Copy full SHA for d47e806
Notes/02_Working_with_data/02_Containers.md
@@ -52,9 +52,10 @@ An example when reading records from a file.
52
records = [] # Initial empty list
53
54
with open('Data/portfolio.csv', 'rt') as f:
55
+ next(f) # Skip header
56
for line in f:
57
row = line.split(',')
- records.append((row[0], int(row[1])), float(row[2]))
58
+ records.append((row[0], int(row[1]), float(row[2])))
59
```
60
61
### Dicts as a Container
0 commit comments