Cody Bable

Generation

generate functionFri, 21 Apr 2023

add .txt to end of file

def add_text_to_file(file_name): file_name = file_name + '.txt' return file_name add_text_to_file("dear_diary")

Questions about programming?Chat with your personal AI assistant