As the error message suggests, the problem might be near line 40.

Look at lines 40 and 41 in your program.

                print(rates[row[0]] + " / VALUE : " + str(value))
                rates[row[0]] = value

Look at it very carefully, and try to explain to yourself what those
two lines mean.

What do you _want_ to happen when those two statements execute?

What does "row[0]" mean?

What does "rates[row[0]]" mean?

Do you notice something strange?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to