How come Python's dict doesn't have .iter()? -
How come Python's dict doesn't have .iter()? -
def complicated_dot(v, w): dot = 0 (v_i, w_i) in zip(v, w): x in v_i.iter(): if x in w_i: dot += v_i[x] + w_i[x] homecoming float(dot)
i'm getting error says:
attributeerror: 'dict' object has no attribute 'iter'
it has iter
. can write
for x in v_i:
python
Comments
Post a Comment