Pythonic way to check if a file exists? [duplicate] by IT Nursery Which is the preferred way to check if a file exists and if not create it? 5 Answers 5