Skip to content
Advertisement

How to write in file records line by line? PYTHON

JavaScript

I receivng: name_file.txt

JavaScript

I can’t find a way to get every record on a new line… like this:

JavaScript

or better:

JavaScript

Advertisement

Answer

Update your save_data function like this. You need to format generate output string from database array before writing into file.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement