Cody Bable

Generation

generate functionSun, 23 Apr 2023

check input if file is in system, if not make the it a file

def create_file(filename): if not os.path.isfile(filename): open(filename, 'w').close()

Questions about programming?Chat with your personal AI assistant