def write_to_file(line): f = open("output.txt","w") f.write(line) f.close() return write_to_file("Today is really nice out!")