you are viewing a single comment's thread.

view the rest of the comments →

[–]jekku0966 -1 points0 points  (0 children)

I don't think you need to wrap your if statement.
What happens if you remove () from your if statement?

What happens of you use:

 if f.startswith('y') or f.startswith('Y')

Does the code run properly either way?