Cody Bable

Generation

generate functionSun, 23 Apr 2023

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

def is_a_file(input_f, output_f): with open(input_f, 'r') as f: with open(output_f, 'w') as g: for line in f: g.write(line) is_a_file('foo.txt', 'bar.txt')

Questions about programming?Chat with your personal AI assistant