Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ruuram

    iteration over non-sequence error in dictionary.keys()

    I'm new to Python. When I try to run the following program with a3=DictAdder() a3.add({1:1},{2:2}} I get the "iteration over non-sequence" error. class DictAdder: def add(self, x, y): dict={} for k in x.keys(): dict[k]=x[k] for k in y.keys(): dict[k]=y[k]...

Part and Inventory Search

Back
Top