First time poster so apologies if I’m not doing it right here!
So I’m on step 7 of “Hacking the Fender” in the Python 3 Course.
I was feeling quite pleased with myself until I got to points 6 and 7 and I cannot seem to clear up an issue, I even watched the developers tutorial to see where I was going wrong, but from my understanding I am doing what they are doing to the letter!
with open(“passwords.csv”) as password_file:
password_csv = csv.DictReader(password_file)
for password_row in password_file:
This is returning:
Traceback (most recent call last):
File “script.py”, line 8, in
TypeError: string indices must be integers
Which I haven’t seen before. I’ve come to the end of thoughts of how to do this, so if anyone can point out the probably obvious mistake I am making then please, I’d very much appreciate it!