79397770

Date: 2025-01-29 18:19:31
Score: 1
Natty:
Report link

os.chdir() does not return any value.

Your for loop is therefore basically:

for file in None:
   ...

Which obviously does not work, as None doesn't implement the iterator protocol.

Did you mean os.listdir() perchance?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: digitalarbeiter