Aug-16-2022, 05:55 PM
(Aug-16-2022, 05:48 PM)deanhystad Wrote: According to your print row is a dictioany, not a list. You can use row["id"] or row["date"] or row["product1"]. You cannot do row[2] or row[3]. Maybe that should be row["product2"] and row["product3].
Why do you do this "print("{0}".format(row[2]))" when it does the exact same thing as "print(row[2])"?
Traceback (most recent call last): File "/home/pokip/test.py", line 76, in <module> print(row[2]) KeyError: 2