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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -