Answers for "python condition for checking either file exists or not"

2

how to check if some file exists in python

import os
filename = "creating file with python function"#your file name
print("Do ",filename," exists:- ",os.path.exists(filename))
Posted by: Guest on October-05-2021

Code answers related to "python condition for checking either file exists or not"

Python Answers by Framework

Browse Popular Code Answers by Language