Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c3e2e3 commit 32b295cCopy full SHA for 32b295c
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