Hacking the Fender - passwords.csv is empty

I’m working on the Hacking the Fender problem and after getting an empty list no matter what I do I discovered I can open the ‘password.csv’ file that I’m supposed to be reading usernames from. When I open the file it’s completely blank.

Can someone provide that file for me?

Here’s my code and a link to the project so far for reference:

https://www.codecademy.com/paths/data-science/tracks/dscp-python-fundamentals/modules/dscp-python-files/projects/hacking-the-fender

import csv

compromised_users = []

with open('passwords.csv') as password_file:

  password_csv = password_file.read()

  for row in password_csv:

    compromised_users.append(password_csv['Username'])

print(compromised_users)

What about simply resetting the project (should be near the RUN/SAVE button) though I’d suggest reading the prompt to make sure it’s only resetting that project.

Could you please provide a link to the project to accompany your query.

1 Like

Resetting the project worked. Didn’t realize that was an option until you suggested it.

Thank you

2 Likes

Hi guys! here’s the link to my code. I’d like you to have look and tell me of any mistake a made. Thanks in advance!