SyntaxFix
Write A Post
Hire A Developer
Questions
In the spirit of Andy Jones' answer, how about an authentic ternary operation:
os.remove(fn) if os.path.exists(fn) else None