We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3d05a commit 46afa8cCopy full SHA for 46afa8c
q2/matt/q2.py
@@ -10,7 +10,7 @@ def read_data():
10
11
data = []
12
with open("../data.txt") as f:
13
- data = [line.strip().split(",") for line in f.readlines()]
+ data = (line.strip().split(",") for line in f.readlines())
14
return {name:{"weight":float(weight), "height":float(height)}
15
for name, height, weight in data}
16
0 commit comments