Python Periksa apakah ada file
import os
os.path.exists("file.txt") # Or folder, will return true or false
Duco Defiant Dogfish
import os
os.path.exists("file.txt") # Or folder, will return true or false
import os
filename = "creating file with python function"#your file name
print("Is",filename,"a file",os.path.isfile(file_oprator))