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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -