so I have a error after running this code, I have no idea what is wrong with it. Could someone help me with that please?

  • Next time please post your code and error message as text, not as an image.
    – Matthias
    Jan 15 at 13:07

You need to escape the \ in your path. You can do that with \\ or with a raw string.

# Escape
path = "C:\\users\\something\\a"

# Or with a raw string
path = r"C:\users\something"
  • Or you could just use forward slashes (yes, even on Windows): path = "C:/users/something"
    – Matthias
    Jan 15 at 12:56
  • By the way, how can I numerate from 1 not from 0?
    – kiwi
    Jan 15 at 12:58
  • Look at the documentation of enumerate. There is an optional second parameter.
    – Matthias
    Jan 15 at 13:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.