M
M
molly_dolly2018-05-24 00:11:55
Python
molly_dolly, 2018-05-24 00:11:55

How to write the results of functions to a separate python text file?

There are working functions, but how to make sure that all the results from these functions are written to a separate text file at the output?
I tried to write my own code - it does not work:

def write():
    fy = input("Введите имя файла для сохранения")
    file2 = open (fy, "w")
    file2.write (max_sh(), count())
    file2.close()
print (write())

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question